

/* Start:/local/templates/ksrk2025_v2/components/bitrix/news.list/ksrk2025_departments/style.css?176062070511720*/
#departments-main-title {
    display: block;
    margin-bottom: 0;
    padding-bottom: 10px;
    position: relative;
    font-size: 36px;
    line-height: 0.8889;
    text-align: center;
    font-weight: bold;
    color: #5a4f4f;
    font-family: 'El Messiri', sans-serif;
    font-size: 36px;
}

#departments-main-title::before {
    content: "";
    display: block;
    width: 100px;
    height: 2px;
    background: #b8860b;
    position: absolute;
    bottom: 0;
    left: 50%;
    margin-left: -50px;
}

#section-departments {
	display: block;
	margin: 0px;
	padding: 0px;
	overflow-x: hidden;
}

#section-departments .container {
	display: flex;
    flex-direction: row;
    align-items: stretch; 
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding: 20px;
    min-height: 450px; 
    width: 100%;
    box-sizing: border-box;
    scrollbar-width: none;
}

.departments-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.department-item {
	flex: 0 0 100%; 
    scroll-snap-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.dept-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-star;
    text-align: center;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #5a4f4f;
    position: relative;
    flex: none; 
    width: 100%;
    height: 100%; 
    box-sizing: border-box;
}

.dept-link::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 4;
    background: rgba(255, 255, 255, 0.2);
    opacity: 0;
    transition: opacity ease 0.2s;
}

.dept-link::after {
    content: "";
    display: block;
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 10px;
    right: 10px;
    z-index: 6;
    opacity: 0;
    border: 2px solid #b8860b;
    transition: opacity ease 0.2s;
}

.dept-link:hover::before,
.dept-link:hover::after {
    opacity: 1;
}

.dept-link .photo {
    display: block;
    position: relative;
    overflow: hidden;
    line-height: 1;
    height: 320px;
	width: 100%;
}

.dept-link .photo img {
	display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /*background-color: transparent;*/
}

.dept-link .description-wrap-full {
	flex: 1;
	min-height: 200px;
    padding: 10px;
    position: relative;
    overflow: hidden;
    text-align: center;
    background-color: #ffffff;
    list-style: none;
    
}

.title-wrap-title {
    line-height: 1.4em;
    height: calc(1.4em * 2);
    font-weight: bold;
    color: #5a4f4f;
    margin: 0 -5px 8px -5px;
    display: block;
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: wrap;
    text-align: center;
}

.text-wrap-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    line-height: 1.4em;
    max-height: calc(1.4em * 5); 
    box-sizing: border-box;      
    text-align: center;
    font-family: 'Ubuntu', sans-serif;
    padding: 0;                 
    margin: 0;
}

@media (min-width: 576px) {
    .department-item {
        flex: 0 0 100%;   
        max-width: 85%;
        padding: 45px;
    }

    .dept-link .photo {
        height: 320px; 
    }

    .dept-link .description-wrap-full {
        min-height: 200px;
        padding: 15px;
    }

    .text-wrap-text {
        -webkit-line-clamp: 6;
        max-height: calc(1.4em * 6);
    }
}


@media (min-width: 768px) {
    #section-departments .container {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap; 
        gap: 16px; 
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        padding: 0; 
        margin: 0 auto;
        width: 100%;
        box-sizing: border-box;
    }

    .department-item {
        flex: 0 0 calc(50% - 8px); 
        max-width: calc(50% - 8px);
        scroll-snap-align: start;
        display: flex;
        flex-direction: column;
        margin: 0;
        box-sizing: border-box;
    }

    .dept-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        height: 100%;
        box-sizing: border-box;
    }

    .dept-link .photo {
        height: 360px; 
        width: 100%;
    }

    .dept-link .description-wrap-full {
        min-height: 240px;
        padding: 20px;
    }

    .title-wrap-title {
        font-size: 20px;
    }

    .text-wrap-text {
        font-size: 16px;
        -webkit-line-clamp: 7;
        max-height: calc(1.6em * 7);
    }
}

@media (min-width: 992px) {
    #section-departments .container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px; 
        margin: 40px auto;
        padding: 0 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .department-item {
        /*flex: 0 0 calc((100% - 40px) / 2); */
        max-width: 400px;
        display: flex;
        flex-direction: column;
        margin: 20px;
        padding: 0;
        box-sizing: border-box;
        min-height: 180px;
    }

    .dept-link {
        display: flex;
        align-items: stretch;
        justify-content: flex-start;
        width: 100%;
        height: 100%;
        padding: 0;
        margin: 0;
        overflow: hidden;
        position: relative;
        text-decoration: none;
        color: inherit;
        background-color: #fff;
        font-weight: 500;
        transition: all 0.3s ease;
    }

    .dept-link .photo {
        flex: 0 0 50%;
        min-height: 130px;
        height: auto;
        overflow: hidden;
    }

    .dept-link .photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .dept-link .description-wrap-full {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 6px 10px 10px 10px;
        text-align: justify;
    }

    .title-wrap-title {
        font-size: 18px;
        margin: 0 0 6px 0;
        text-align: center;
    }

    .text-wrap-text {
        font-size: 16px;
        line-height: 1.3em;
        -webkit-line-clamp: 3;
        max-height: calc(1.3em * 3);
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-align: justify;
    }

    #section-departments .department-item:nth-child(4n+1) .dept-link,
    #section-departments .department-item:nth-child(4n+2) .dept-link {
        flex-direction: row;
    }


    #section-departments .department-item:nth-child(4n+3) .dept-link,
    #section-departments .department-item:nth-child(4n+4) .dept-link {
        flex-direction: row-reverse;
    }

    #section-departments .department-item .description-wrap-full {
        align-items: center;
        text-align: center;
    }
}




@media (min-width: 1200px) {
    #section-departments .container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        margin: 40px auto;
        padding: 0 20px;
        width: 100%;
    }

    .department-item {
        flex: 0 0 calc((100% - 3 * 40px - 2 * 20px) / 3);
        max-width: calc((100% - 3 * 40px - 2 * 20px) / 3);
        display: flex;
        flex-direction: column;
        margin: 20px;
        padding: 0;
        box-sizing: border-box;
        min-height: 180px;
    }

    .dept-link {
        display: flex;
        align-items: stretch;
        justify-content: flex-start;
        width: 100%;
        height: 100%;
        padding: 0;
        margin: 0;
        overflow: hidden;
        position: relative;
        text-decoration: none;
        color: inherit;
        background-color: #fff;
        font-weight: 500;
        transition: all 0.3s ease;
    }

    .dept-link .photo {
        flex: 0 0 50%;
        min-height: 130px;
        height: auto;
        overflow: hidden;
    }

    .dept-link .description-wrap-full {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 6px 10px 10px 10px;
        text-align: justify;
    }

    .title-wrap-title {
        font-size: 18px;
        margin: 0 0 10px 0;
        text-align: center;
        line-height: 1.3em;
        height: calc(1.3em * 4);
    }

    .text-wrap-text {
        font-size: 16px;
        line-height: 1.3em;
        -webkit-line-clamp: 5;
        max-height: calc(1.3em * 5);
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-align: justify;
    }


    #section-departments .department-item:nth-child(6n+1) .dept-link,
    #section-departments .department-item:nth-child(6n+2) .dept-link,
    #section-departments .department-item:nth-child(6n+3) .dept-link {
        flex-direction: row;
    }

    #section-departments .department-item:nth-child(6n+4) .dept-link,
    #section-departments .department-item:nth-child(6n+5) .dept-link,
    #section-departments .department-item:nth-child(6n+6) .dept-link {
        flex-direction: row-reverse;
    }
}

@media (min-width: 1400px) {
    #section-departments .container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 25px;
        margin: 40px auto;
        padding: 0 20px;
        width: 100%;
    }

    .department-item {
        flex: 0 0 calc((100% - 3*40px - 2*25px)/3);
        max-width: calc((100% - 3*40px - 2*25px)/3);
        display: flex;
        flex-direction: column;
        margin: 20px;
        padding: 0;
        box-sizing: border-box;
        min-height: 190px;
    }

    .dept-link {
        display: flex;
        align-items: stretch;
        justify-content: flex-start;
        width: 100%;
        height: 100%;
        padding: 0;
        margin: 0;
        overflow: hidden;
        position: relative;
        text-decoration: none;
        color: inherit;
        background-color: #fff;
        font-weight: 500;
        transition: all 0.3s ease;
    }

    .dept-link .photo {
        flex: 0 0 50%;
        min-height: 150px;
        height: auto;
        overflow: hidden;
    }

    .dept-link .description-wrap-full {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 8px 12px 12px 12px;
        text-align: justify;
    }

    .title-wrap-title {
        font-size: 18px;
        margin: 0 0 6px 0;
        text-align: center;
    }

    .text-wrap-text {
        font-size: 16px;
        line-height: 1.35em;
        -webkit-line-clamp: 5;
        max-height: calc(1.35em * 5);
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-align: justify;
    }


    #section-departments .department-item:nth-child(6n+1) .dept-link,
    #section-departments .department-item:nth-child(6n+2) .dept-link,
    #section-departments .department-item:nth-child(6n+3) .dept-link {
        flex-direction: row;
    }

    #section-departments .department-item:nth-child(6n+4) .dept-link,
    #section-departments .department-item:nth-child(6n+5) .dept-link,
    #section-departments .department-item:nth-child(6n+6) .dept-link {
        flex-direction: row-reverse;
    }
}
/* End */
/* /local/templates/ksrk2025_v2/components/bitrix/news.list/ksrk2025_departments/style.css?176062070511720 */
