/* runtec-tech.ru — типографика статьи в модуле uni_news.
   Подключается из catalog/controller/information/uni_news_story.php через addStyle с версией. */

.news-page__description{
	font-size:16px;
	line-height:1.72;
	color:var(--body-c,#111);
	-webkit-text-size-adjust:100%;
}
.news-page__description > *:first-child{margin-top:0 !important}
.news-page__description > *:last-child{margin-bottom:0 !important}
.news-page__description p{margin:0 0 15px}

/* Заголовки: тема задаёт margin-top:0, из-за этого разделы слипаются */
.news-page__description h2{
	font-size:26px;
	line-height:1.28;
	font-weight:700;
	color:var(--heading-c,#222);
	margin:44px 0 14px;
	padding:0;
	border:0;
	letter-spacing:-.01em;
}
.news-page__description h3{
	font-size:20px;
	line-height:1.34;
	font-weight:600;
	color:var(--heading-c,#222);
	margin:32px 0 10px;
	padding:0;
	border:0;
}
.news-page__description h2:first-child,
.news-page__description h3:first-child{margin-top:0}
.news-page__description h2 + p,
.news-page__description h3 + p{margin-top:0}
.news-page__description h2 + table,
.news-page__description h3 + table,
.news-page__description h2 + ul,
.news-page__description h3 + ul{margin-top:8px}

.news-page__description ul,
.news-page__description ol{margin:0 0 18px;padding-left:24px}
.news-page__description li{margin:0 0 8px}
.news-page__description ul li::marker{color:var(--a-c,#ffb61c)}
.news-page__description strong{font-weight:600;color:var(--heading-c,#222)}

.news-page__description a{
	color:var(--a-c,#ffb61c);
	text-decoration:underline;
	text-underline-offset:2px;
}
.news-page__description a:hover{color:var(--a-c-hover,#065982)}

/* Таблицы */
.news-page__description table{
	width:100%;
	border-collapse:collapse;
	border-spacing:0;
	margin:22px 0 30px;
	font-size:15px;
	line-height:1.55;
	border:1px solid #e6e1d6;
}
.news-page__description thead th{
	background:#fdf3e0;
	color:var(--heading-c,#222);
	padding:12px 14px;
	border:1px solid #e6e1d6;
	text-align:left;
	vertical-align:top;
	font-weight:700;
}
.news-page__description tbody td{
	padding:11px 14px;
	border:1px solid #e6e1d6;
	vertical-align:top;
}
.news-page__description tbody tr:nth-child(even) td{background:#fcfcfa}

/* Подпись автора в конце */
.news-page__description em{
	display:block;
	margin-top:26px;
	padding-top:14px;
	border-top:1px solid #ececec;
	font-size:14px;
	line-height:1.5;
	color:#6b6b6b;
	font-style:normal;
}

@media (max-width:767px){
	.news-page__description{font-size:15px;line-height:1.62}
	.news-page__description h2{font-size:21px;margin-top:32px}
	.news-page__description h3{font-size:18px;margin-top:24px}
	.news-page__description table{
		display:block;
		overflow-x:auto;
		-webkit-overflow-scrolling:touch;
		white-space:nowrap;
		font-size:14px;
	}
}

/* ===== Автор статьи и страница автора (по образцу tor-tech) ===== */
.news-byline{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin:-6px 0 18px;font-size:14px;color:#6b7383}
.news-byline__photo{width:32px;height:32px;border-radius:50%;object-fit:cover;flex:0 0 32px}
.news-byline__name a{color:var(--heading-c,#222);font-weight:600;text-decoration:none}
.news-byline__name a:hover{color:var(--a-c,#ffb61c)}
.news-byline__role{color:#6b7383}
.news-byline__date{margin-left:auto;white-space:nowrap}

.news-author{display:flex;gap:20px;margin:34px 0 10px;padding:22px 24px;background:#fdfaf3;border:1px solid #efe6d6;border-radius:12px}
.news-author__photo{width:96px;height:96px;border-radius:50%;object-fit:cover;flex:0 0 96px}
.news-author__body{flex:1 1 auto}
.news-author__name{font-size:17px;font-weight:700;color:var(--heading-c,#222);margin:0 0 2px}
.news-author__name a{color:inherit;text-decoration:none}
.news-author__name a:hover{color:var(--a-c,#ffb61c)}
.news-author__role{font-size:13px;color:#6b7383;margin:0 0 10px}
.news-author__text{font-size:14px;line-height:1.6;color:#444;margin:0}
.news-author__link{display:inline-block;margin-top:10px;font-size:14px;font-weight:600;color:var(--a-c,#ffb61c);text-decoration:underline}

.author-page{margin:10px 0 30px}
.author-page__head{display:flex;gap:28px;align-items:flex-start;margin:0 0 30px}
.author-page__photo{width:160px;height:160px;border-radius:50%;object-fit:cover;flex:0 0 160px}
.author-page__role{font-size:15px;font-weight:600;color:var(--heading-c,#222);margin:0 0 10px}
.author-page__bio{font-size:15px;line-height:1.65;color:#333;margin:0}
.author-page__subtitle{font-size:22px;font-weight:700;color:var(--heading-c,#222);margin:0 0 18px}
.author-page__list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.author-page__item{display:flex;flex-direction:column;background:#fff;border:1px solid #eee5d5;border-radius:12px;overflow:hidden;text-decoration:none;transition:box-shadow .2s,border-color .2s}
.author-page__item:hover{border-color:#e6d3ae;box-shadow:0 6px 20px rgba(0,0,0,.08)}
.author-page__item-img{width:100%;height:auto;display:block;aspect-ratio:4/3;object-fit:cover}
.author-page__item-body{padding:12px 14px 16px}
.author-page__item-name{font-size:13px;font-weight:600;line-height:1.35;color:var(--heading-c,#222);margin:0 0 6px}
.author-page__item-meta{font-size:12px;color:#8b93a3}

@media (max-width:1200px){.author-page__list{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:991px){.author-page__list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:767px){
	.author-page__list{grid-template-columns:1fr}
	.author-page__head{flex-direction:column;align-items:center;text-align:center}
	.author-page__bio{margin:0 auto}
	.news-author{flex-direction:column;align-items:flex-start}
	.news-byline__date{margin-left:0}
}

/* Обложка статьи: блок справа, 460 px — чуть шире исходных 340 px,
   чтобы текст на баннере читался, но картинка не занимала весь первый экран. */
#content .news-page__image{float:right;width:460px;max-width:40%;margin:0 0 20px 26px;border:0;background:transparent;padding:0}
#content .news-page__image a{display:block;line-height:0}
#content .news-page__image img{width:100%;height:auto;display:block;border-radius:10px}
@media (max-width:767px){
	#content .news-page__image{float:none;width:100%;max-width:100%;margin:0 0 18px}
}
