

/* Start:/local/templates/letech-sfx/components/bitrix/news.list/blog-sfx/style.css?175371224913227*/
.le-blog-section{
	margin-bottom: 120px;
}

.blog-container{
	display: grid;
	/* grid-template-areas:
        "blog-0 blog-0 blog-0"
        "blog-1 blog-2 blog-3"; */
    /* grid-template-rows: repeat(2, 1fr); */
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 32px;
    grid-row-gap: 32px;
	margin-top: 20px;
	margin-bottom: 40px;
}
.blog-item{
	background: #fff;
	padding: 20px;
	border-radius: 20px;
	position: relative;
	transition: box-shadow 0.3s ease-in-out;
}
.blog-key-0{
	grid-area: blog-0;
	display: grid;
	grid-template-areas:
        "blogitem-0 blogitem-1";
	grid-template-columns: repeat(2, 1fr);
	gap: 32px;
}
.blog-key-1{
	grid-area: blog-1;
}
.blog-key-2{
	grid-area: blog-2;
}
.blog-key-3{
	grid-area: blog-3;
}
.blog-key-0 .blog-item-img{
	grid-area: blogitem-0;
}
.blog-key-0 .blog-item-content{
	grid-area: blogitem-1;
	padding: 40px 40px 40px 20px;
}
.blog-key-0 .blog-item-name{
	order: 1;
	margin-top: 40px;
}
.blog-key-0 .blog-item-text{
	order: 2;
	overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Максимальное количество строк */
    -webkit-box-orient: vertical;
    transition: height 0.3s ease;
    height: auto;
}
.blog-key-0 .blog-item-date{
	order: 3;
	justify-content: flex-start;
	gap: 20px;
}
.blog-key-0 .blog-item-date .blog-item-date-full{
	order: 2;
}
.blog-key-0 .blog-item-date .blog-time-read{
	order: 1;
}
.blog-item-img{
	overflow: hidden;
	border-radius: 12px;
}
.blog-item-img img{
	width: 100%;
	transform: translate(1px, 1px) scale(1.01);
    transition: transform 0.6s;
	min-height: 240px;
}
.blog-item-content{
	text-align: left;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 20px 0;
}
.blog-key-0 .blog-item-name a{
	font-weight: 600;
	font-size: 32px;
	line-height: 40px;
	color: #282a2d;
}
.blog-item-name a{
	font-weight: 500;
	font-size: 20px;
	line-height: 24px;
	color: #282a2d;
}
.blog-item-name a:hover{
	color: #f3702b;
}
.blog-mini-item .blog-item-text {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    /* -webkit-line-clamp: 3; */ /* Максимальное количество строк */
    -webkit-box-orient: vertical;
    transition: height 0.3s ease;
    height: auto; /* Высота будет изменяться динамически через JS */
}
.blog-item-text {
	font-size: 16px;
	line-height: 20px;
	color: #484f55;
}
.blog-item-date {
    display: flex;
    justify-content: space-between;
}
.blog-time-read {
    display: flex;
    align-items: center;
    gap: 8px;
	padding: 8px 12px;
	background: #fff;
	border-radius: 4px;
}
.blog-navigation {
	margin-bottom: 120px;
	display: flex;
	justify-content: center;
	gap: 10px;
}
body{
	background-color: #f6f7f8 !important;
}
.blog-key-0 .blog-item-content{
	background-color: #f6f7f8;
	border-radius: 20px;
	padding: 40px;
}
.blog-item-tag {
	background: #f3702b;
	color: #fff;
	width: max-content;
	padding: 8px 12px;
	border-radius: 4px;
}
.blog-good-flex{
	display: flex;
	gap: 12px;
	align-items: center;
}
.blog-key-0 .blog-item-date-full {
	position: absolute;
	right: 60px;

}
.blog-item-date-full{
	background: #fff;
	padding: 8px 12px;
	border-radius: 4px;
}
.blog-item:not(.blog-key-0) .blog-good-flex {
    position: absolute;
    margin-top: -70px;
    left: 33px;
}
.blog-item:not(.blog-key-0) .blog-good-flex .blog-item-date-full {
	display: none;
}
.blog-key-0 .blog-item-date-absolute{
	display: none;
}
.blog-item:not(.blog-key-0) .blog-item-date-absolute {
	position: absolute;
	top: 33px;
	left: 35px;
	background: #fff;
	padding: 8px 12px;
	border-radius: 4px;
}
.blog-item:not(.blog-key-0) .blog-item-name{
	margin-top: 12px;
}
.blog-item:hover{
	cursor: pointer;
	box-shadow: 0 12px 28px 0 rgba(50, 65, 85, 0.12), 0 4px 8px 0 rgba(50, 65, 85, 0.08);
}
.blog-item:hover .blog-item-img img{
	transform: translate(5%, 5%) scale(1.1);
}
/* #tagFilterForm, #authorFilterForm{
	display: flex;
	gap: 5px;
	align-items: center;
	flex-wrap: wrap;
} */
#tagFilterForm, #authorFilterForm {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  width:100%;
}

.filter-label {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  height: 100%;
  min-width: 55px;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  flex: 1;
}

/* Стили для кнопок */
.tag-button, .author-button {
	display: flex;
	padding: 7px 16px 7px 12px;
	margin: 5px;
	border-radius: 4px;
	background-color: #fff;
	color: #324155;
	font-size: 14px;
	line-height: 16px;
	text-align: center;
	cursor: pointer;
	position: relative;
	transition: background-color 0.3s, color 0.3s;
	gap: 10px;
	border: 1px solid transparent;
	align-items: center;
}

.tag-button input, .author-button input {
    display: none; /* скрываем стандартные чекбоксы */
}

.tag-button.checked, .author-button.checked {
    background-color: #f3702b;
    color: #fff;
}

.tag-remove, .author-remove {
    display: none;
    font-size: 14px;
    color: #fff;
    background-color: transparent;
    cursor: pointer;
}

/* Появляется крестик на выбранных кнопках */
.tag-button.checked .tag-remove, .author-button.checked .author-remove {
    display: inline-block;
}

/* При наведении на кнопку */
.tag-button:hover, .author-button:hover {
    border: 1px solid #f3702b;
}

/* Стиль для крестика */
.tag-remove, .author-remove {
    font-family: Arial, sans-serif;
    font-weight: bold;
}


.blog-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
	gap: 10px;
}

.sort-container {
    position: relative;
    /* display: inline-block; */
    display: none;
    cursor: pointer;
}

.sort-selected {
    padding: 10px 15px;
    border-radius: 5px;
    transition: background 0.3s ease;
	display: flex;
	gap: 5px;
	align-items: center;
}
.sort-selected:after{
	content: "";
	display: block;
	width: 16px;
	height: 16px;
	background: url('/upload/des/sort-arrow.svg') no-repeat;
}

.sort-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
	padding: 10px 0;
    border-radius: 20px;
    display: none;
    min-width: 150px;
	z-index: 9;
}

.sort-dropdown.open {
    display: block;
}

.sort-option {
    padding: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.sort-option:hover {
    color: #f3702b;
	background: #eaecee;
}
.blog-item .blog-item-date-absolute{
	font-size: 12px;
}
.blog-item-tag {
	font-size: 14px;
}
.blog-time-read {
	font-size: 14px;
}
h1{
	margin: 0 0 40px 0 !Important;
}
/* Кнопка "Фильтры" (по умолчанию скрыта) */
.filter-toggle {
    display: none;
    padding: 8px 12px;
    text-align: center;
    font-size: 12px;
    cursor: pointer;
    border-radius: 5px;
    width: max-content;
    text-align: center;
	gap: 10px;
	border: 1px solid #b7b6c2;
	align-items: center;
}
.filter-toggle:before{
	content: "";
	display: block;
	width: 20px;
	height: 20px;
	background: url('/upload/des/blog-filter.svg') no-repeat;
}
.filter-header{
	display: none;
}
/* Скрытый блок фильтра */
.blog-filter {
    transition: transform 0.3s ease-in-out;
}
.filter-text i{
	font-style: normal;
}
@media screen and (max-width: 1600px){
	.le-blog-section{
		margin-bottom: 80px;
	}

	.blog-container {
		grid-template-areas: "blog-0 blog-1 blog-2"
		"blog-3 blog-4 blog-5";
		grid-row-gap: 20px;
		grid-column-gap: 20px;
	}
	.blog-key-0{
		display: block;
	}
	.blog-key-0 .blog-item-content {
		background-color: transparent;
		border-radius: 0;
		padding: 20px 0;
	}
	.blog-key-0 .blog-item-name {
		margin-top: 20px;
	}
	.blog-key-0 .blog-item-name a {
		font-weight: 500;
		font-size: 24px;
		line-height: 28px;
		color: #282a2d;
	}
	.blog-item.blog-key-0 .blog-good-flex {
		position: absolute;
		margin-top: -80px;
		left: 40px;
	}
	.blog-item.blog-key-0 .blog-good-flex .blog-item-date-full {
		display: none;
	}
	.blog-item.blog-key-0 .blog-item-date-absolute {
		position: absolute;
		top: 40px;
		left: 40px;
		background: #fff;
		padding: 8px 12px;
		border-radius: 4px;
		display: block;
	}
	.blog-item-img img {
		min-height: 185px;
		height: 230px;
	}
	.blog-navigation {
		margin-bottom: 80px;
	}
}

@media screen and (max-width: 1200px){
	.blog-key-0 .blog-item-text{
		-webkit-line-clamp: 3;
	}
	.blog-key-0 .blog-item-content {
		padding: 20px;
	}
}
@media screen and (max-width: 992px){
	.blog-container {
		grid-template-areas: "blog-0 blog-1"
			"blog-2 blog-3";
		grid-template-columns: repeat(2, 1fr);
	}
	.blog-key-0 {
		display: flex;
		flex-direction: column;
		gap: 0;
	}
	.blog-key-0 .blog-item-name {
		order: 2;
	}
	.blog-key-0 .blog-item-date {
		order: 1;
		justify-content: space-between;
	}
	.blog-key-0 .blog-item-text {
		order: 3;
		-webkit-line-clamp: inherit;
	}
	.blog-item-content {
		padding: 20px;
	}
	.blog-good-flex {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
		margin-top: -115px !important;
		left: 35px !important;
	}
	.blog-item .blog-item-date-absolute {
		top: 35px !important;
		left: 35px !important;
	}
	h1 {
		margin: 0 0 28px 0 !Important;
	}
}
@media screen and (max-width: 768px){
	.blog-item-name a {
		font-size: 20px;
		line-height: 24px;
	}
	.blog-item-text {
		font-size: 15px;
		line-height: 23px;
	}
	.blog-container {
		margin-top: 30px;
		margin-bottom: 24px;
	}
	.blog-key-0 .blog-item-name a {
		font-size: 20px;
		line-height: 24px;
	}
	h1 {
		margin: 0 0 40px 0 !Important;
	}
	.blog-navigation {
		margin-bottom: 40px;
	}
	.blog-item-img img {
		height: auto;
	}
}
@media screen and (max-width: 576px){
	.le-blog-section{
		margin-bottom: 40px;
	}

	.blog-item-content {
		padding: 12px;
	}
	.blog-key-0 .blog-item-content {
		padding: 12px;
	}
	.blog-item {
		padding: 12px;
	}
	.blog-container {
		grid-row-gap: 12px;
		grid-column-gap: 12px;
	}
	.blog-item .blog-item-date-absolute {
		top: 25px !important;
		left: 25px !important;
		padding: 4px 8px !important;
	}
	.blog-good-flex {
		align-items: flex-start;
		flex-direction: row;
		gap: 8px;
		margin-top: -55px !important;
		left: 25px !important;
	}
	.blog-item-tag {
		padding: 4px 8px;
	}
	.blog-time-read {
		padding: 4px 8px;
		gap: 5px;
	}
    .filter-toggle {
        display: flex;
    }

    /* Делаем блок фильтров модальным */
    .blog-filter {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: white;
        z-index: 1000;
        padding: 20px;
        display: flex;
        flex-direction: column;
        gap: 20px;
        transform: translateY(-100%); /* Изначально скрыт */
		justify-content: flex-start;
		align-items: flex-start;
    }

    /* При открытии */
    .blog-filter.open {
        transform: translateY(0);
    }

    /* Заголовок фильтра (с крестиком) */
    .filter-header {
		display: flex;
		justify-content: flex-start;
		align-items: center;
		font-size: 20px;
		font-weight: 500;
		gap: 10px;
		border-bottom: 1px solid #b7b6c2;
		width: 100%;
		padding: 0 0 20px 0;
	}

    .filter-close {
        /* font-size: 28px; */
        cursor: pointer;
    }

    /* Блокировка прокрутки при открытии фильтра */
    body.filter-open {
        overflow: hidden;
    }
	#tagFilterForm, #authorFilterForm {
		flex-direction: column;
		align-items: flex-start;
	}
	.filter-text{
		padding-left: 16px;
		font-size: 14px;
		font-weight: 500;
		padding-bottom: 8px;
		display: flex;
		gap: 20px;
		align-items: center;
	}
	.tag-button-text, .author-button-text{
		font-size: 12px;
	}
	.filter-label {
		height: auto;
	}
	.filter-tags {
		flex-wrap: nowrap;
		flex-direction: column;
	}
	.tag-button.checked, .author-button.checked {
		background-color: #fff;
		color: #324155;
	}
	.tag-button .tag-button-text, .author-button .author-button-text {
		display: flex;
		gap: 12px;
		align-items: center;
	}
	.tag-button .tag-button-text:before, .author-button .author-button-text:before {
		content: "";
		display: block;
		width: 20px;
		height: 20px;
		background: url('/upload/des/check-empty.svg') no-repeat;
	}
	.tag-button.checked .tag-button-text:before, .author-button.checked .author-button-text:before {
		background: url('/upload/des/check.svg') no-repeat;
	}
	.filter-text i{
		display: none;
	}
	.filter-text font{
		content: "";
		display: block;
		width: 16px;
		height: 16px;
		background: url('/upload/des/cross-clear.svg') no-repeat;
		cursor: pointer;
	}
}
@media screen and (max-width: 540px){
	.blog-container {
		grid-template-areas: "blog-0"
				"blog-1"
				"blog-2"
				"blog-3";
		grid-template-columns: repeat(1, 1fr);
		grid-row-gap: 12px;
		margin-top: 16px;
	}
	.le-breadcrumbs-wrapper {
		padding: 16px 0 13px;
	}
	h1 {
		margin: 0 0 28px 0 !Important;
	}
	.filter-toggle {
		width: 100%;
		justify-content: center;
	}
}

.blog-item-img img {
	max-height: 240px;
}

.blog-container:last-child{margin-bottom: 0;}

/* End */
/* /local/templates/letech-sfx/components/bitrix/news.list/blog-sfx/style.css?175371224913227 */
