

/* Start:/local/components/tichiy/articles/templates/.default/style.css?17893798968077*/
:root {
	--primary-color: #2c3e50;
	--accent-color: #e67e22;
	--text-dark: #333333;
	--text-muted: #7f8c8d;
	--bg-card: #ffffff;
	--transition: all 0.4s ease-in-out;
}
.articles-container *{
	outline:none !important;
}
.articles-container {
	display: flex;
	flex-direction: column;
	gap: 25px;
}

/* Стили Аккордеона */
.category-accordion {
	background: var(--bg-card);
	box-shadow: 0 4px 12px rgba(0,0,0,0.03);
	overflow: hidden;
	border: 1px solid #eef2f3;
	transition: var(--transition);
}

.category-accordion[open] {
	box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

/* Шапка группы (клиfeature) */
body .category-header {
	padding: 24px 30px;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	cursor: pointer;
	list-style: none; /* Убирает стандартный маркер браузера */
	user-select: none;
	background: #ffffff;
	transition: var(--transition);
	gap:10px;
}
.category-header::-webkit-details-marker {
	display: none; /* Убирает маркер в Safari */
}

.category-header:hover {
	background: #fafbfc;
}

.category-title {
	display: flex;
	align-items: center;
	gap: 15px;
}

.category-title h2 {
	font-size: 22px;
	color: var(--primary-color);
	margin: 0;
	font-weight: 700;
}

.category-icon {
	width: 26px;
	height: 26px;
	color: var(--accent-color);
	flex-shrink: 0;
}

/* Стрелка индикатора */
.accordion-arrow {
	width: 10px;
	height: 10px;
	border-right: 2px solid var(--text-muted);
	border-bottom: 2px solid var(--text-muted);
	transform: rotate(45deg);
	margin-right: 5px;
	transition: var(--transition);
}

.category-accordion[open] .accordion-arrow {
	transform: rotate(-135deg);
	border-color: var(--accent-color);
}

/* Сетка карточек внутри раскрытого блока */
.articles-grid {
	padding: 10px 30px 35px 30px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 25px;
	border-top: 1px solid #f6f8f9;
	animation: fadeIn 0.4s ease-out;
}

/* Карточки статей и превью */
.article-card {
	background: #ffffff;
	border: 1px solid #eef2f5;
	border-radius: 8px;
	padding: 25px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	transition: var(--transition);
}

.article-card:hover {
	border-color: #dbe3e7;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.card-meta {
	margin-bottom: 12px;
}

.article-date {
	font-size: 13px;
	color: var(--text-muted);
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.article-date svg {
	width: 14px;
	height: 14px;
}

.article-title {
	font-size: 18px;
	color: var(--primary-color);
	line-height: 1.4;
	margin: 0 0 12px 0;
	font-weight: 600;
}

.article-preview {
	font-size: 14px;
	color: #555555;
	line-height: 1.6;
	margin: 0 0 20px 0;
	flex-grow: 1; /* Выравнивает нижние кнопки по одной линии */
}

/* Кнопки действий */
.card-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	padding-top: 15px;
	border-top: 1px dashed #edf1f2;
	flex-wrap: wrap;
}

.btn-read {
	font-size: 14px;
	color: var(--accent-color);
	text-decoration: none;
	font-weight: 600;
	transition: var(--transition);
}

.btn-read:hover {
	color: #d35400;
}

.btn-ask {
	background: none;
	border: 1px solid #dcdde1;
	padding: 6px 14px;
	font-size: 13px;
	border-radius: 4px;
	color: var(--text-dark);
	cursor: pointer;
	font-weight: 500;
	transition: var(--transition);
}

.btn-ask:hover {
	background: var(--primary-color);
	color: #ffffff;
	border-color: var(--primary-color);
}

/* Анимация плавного появления контента */
@keyframes fadeIn {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
	.category-header { padding: 18px 20px; }
	.category-title h2 { font-size: 18px; }
	.articles-grid { padding: 10px 20px 25px 20px; grid-template-columns: 1fr; }
	.article-card { padding: 20px; }
}

.articles-section {
	padding: 0 0 40px 0;
	max-width: 100%;
}
.articles-container {
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.category-accordion {
	background: #ffffff;
	border: 1px solid #eef2f3;
	overflow: hidden;
}
.category-header {
	padding: 20px 25px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	list-style: none;
	background: #ffffff;
	user-select: none;
}
.category-header::-webkit-details-marker { display: none; }
.category-title { display: flex; align-items: center; gap: 12px; }
.category-title h2 { font-size: 20px; margin: 0; color: #2c3e50; }
.category-icon { width: 22px; height: 22px; color: #e67e22; }
.accordion-arrow {
	width: 8px; height: 8px;
	border-right: 2px solid #7f8c8d; border-bottom: 2px solid #7f8c8d;
	transform: rotate(45deg); transition: transform 0.2s ease;
}
.category-accordion[open] .accordion-arrow { transform: rotate(-135deg); }

.articles-grid {
	padding: 15px 25px 30px 25px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
	gap: 25px;
	border-top: 1px solid #f6f8f9;
}
.article-card {
	border: 1px solid #eef2f5;
	border-radius: 6px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background: #fff;
}
.article-title a {
	color: #2c3e50; text-decoration: none; font-size: 17px; font-weight: 600;
}
.article-title a:hover { color: #e67e22; }
.article-img-link { display: block; margin: 12px 0; overflow: hidden; width:100%;height:0;padding-top: 56.6%;position: relative}
.article-img { width: 100%; height: auto; display: block;  transition: transform 0.4s;position: absolute;top:0;left:0;object-fit: contain}
.article-card:hover .article-img { transform: scale(1.03); }
.article-preview { font-size: 14px; color: #555555; line-height: 1.5; }
.card-meta { margin-bottom: 8px; }
.article-date { font-size: 12px; color: #95a5a6; display: inline-flex; align-items: center; gap: 5px; }
.article-date svg { width: 12px; height: 12px; }

.card-actions {
	display: flex; align-items: center; justify-content: space-between;
	margin-top: 15px; padding-top: 12px; border-top: 1px dashed #edf1f2;
}
.btn-read { color: #e67e22; text-decoration: none; font-weight: 600; font-size: 14px; }
.btn-ask.btn--fill {padding: 5px 12px;color: #fff; text-decoration: none; height: var(--height);min-height: var(--height);border:none;}
.btn-ask:hover { background: #2c3e50; color: #fff;}

/* Контейнер сетки */
.articles-grid {
	padding: 15px 25px 30px 25px;
	display: grid;

	/* По умолчанию на больших экранах жестко 4 колонки */
	grid-template-columns: repeat(4, 1fr);
	gap: 20px; /* Немного уменьшили отступ, чтобы 4 карточки смотрелись аккуратнее */
	border-top: 1px solid #f6f8f9;
}

/* Сами карточки статей */
.article-card {
	border: 1px solid #eef2f5;
	border-radius: 6px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background: #fff;
	max-width: 100%;
	width: 100%;
	box-sizing: border-box;
}

/* Адаптивность для ноутбуков и мониторов поменьше — переключаем на 3 колонки */
@media (max-width: 1200px) {
	.articles-grid {
		grid-template-columns: repeat(3, 1fr);
	}
	.category-title h2 {font-size: 18px;}
}

/* Адаптивность для горизонтальных планшетов — переключаем на 2 колонки */
@media (max-width: 992px) {
	.articles-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 15px;
	}
}

/* Адаптивность для мобильных телефонов — переключаем на 1 колонку */
@media (max-width: 650px) {
	.articles-grid {
		grid-template-columns: 1fr;
		padding: 15px 15px 25px 15px;
	}
	.category-title h2 {font-size: 16px;line-height: 140%}
	.article-title a{font-size: 14px;line-height: 140%}

}
/* End */
/* /local/components/tichiy/articles/templates/.default/style.css?17893798968077 */
