/* TERAS - раздел «Статьи». Шрифты, цвета и карточки берутся из темы teras (Новости). */

.ta-archive-lead {
	max-width: 900px;
	margin: -10px 0 0;
	color: var(--Grey-TXT, #6C6C6C);
	font-family: var(--font-family);
	font-size: 20px;
	font-weight: 500;
	line-height: 140%;
}

/* ---------- карточки списка ---------- */
.ta-list { padding: 50px 0 70px; }
.ta-card .inner-box { padding: 32px 32px 24px; }
.ta-card .ta-card-title {
	margin: 0;
	color: var(--Black, #0E172B);
	font-family: var(--second-family);
	font-size: 26px;
	font-weight: 500;
	line-height: 115%;
	text-transform: uppercase;
}
.ta-card .ta-card-title a { color: inherit; text-decoration: none; transition: color .2s; }
.ta-card:hover .ta-card-title a { color: #3B8FED; }
.ta-card .inner-box p {
	margin: 0;
	color: var(--Grey-TXT, #6C6C6C);
	font-family: var(--font-family);
	font-size: 18px;
	font-weight: 500;
	line-height: 140%;
}
.ta-card-img { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; font-size: 0; }
.ta-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ta-card:hover .ta-card-img img { transform: scale(1.04); }
.ta-empty { padding: 60px 0; font-family: var(--font-family); font-size: 20px; }

/* ---------- шапка статьи ---------- */
.bg-news-title.ta-hero {
	height: auto;
	min-height: 440px;
	justify-content: flex-end;
	gap: 18px;
	margin: 40px auto 70px;
	background-position: center !important;
}
.ta-hero-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.bg-news-title.ta-hero h1 { max-width: 1100px; font-size: 52px; }
.bg-news-title.ta-hero p { max-width: 820px; width: auto; }

/* ---------- раскладка: текст + оглавление ---------- */
.ta-layout {
	display: grid;
	grid-template-columns: minmax(0, 900px) 320px;
	justify-content: space-between;
	gap: 60px;
	align-items: start;
	padding-bottom: 90px;
}

.ta-toc {
	position: sticky;
	top: 24px;
	padding: 28px;
	border-radius: 20px;
	background: var(--White, #FFF);
	font-family: var(--font-family);
}
.ta-toc-title {
	margin: 0 0 14px;
	color: var(--Black, #0E172B);
	font-family: var(--second-family);
	font-size: 22px;
	font-weight: 500;
	text-transform: uppercase;
}
.ta-toc ol { margin: 0; padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 10px; }
.ta-toc li { color: #3B8FED; font-size: 16px; line-height: 135%; }
.ta-toc a { color: var(--Black, #0E172B); text-decoration: none; }
.ta-toc a:hover { color: #3B8FED; }

/* ---------- текст статьи ---------- */
.ta-body { min-width: 0; font-family: var(--font-family); color: #3A4150; }
.ta-body > *:first-child { margin-top: 0; }
.ta-body p, .ta-body li {
	color: #3A4150;
	font-size: 20px;
	font-weight: 500;
	line-height: 150%;
}
.ta-body p { margin: 0 0 20px; }
.ta-body > p:first-child { color: var(--Black, #0E172B); font-size: 22px; }
.ta-body h2 {
	margin: 56px 0 22px;
	scroll-margin-top: 24px;
	color: var(--Black, #0E172B);
	font-family: var(--second-family);
	font-size: 36px;
	font-weight: 500;
	line-height: 115%;
	text-transform: uppercase;
}
.ta-body h3 {
	margin: 34px 0 14px;
	color: var(--Black, #0E172B);
	font-family: var(--font-family);
	font-size: 24px;
	font-weight: 700;
	line-height: 130%;
}
.ta-body a { color: #3B8FED; text-decoration: underline; text-underline-offset: 3px; }
.ta-body a:hover { color: #00277C; }
.ta-body strong { color: var(--Black, #0E172B); font-weight: 700; }

.ta-body ul, .ta-body ol { margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ta-body ul { list-style: none; }
.ta-body ul > li { position: relative; padding-left: 30px; }
.ta-body ul > li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: .55em;
	width: 10px;
	height: 10px;
	border-radius: 3px;
	background: var(--gradient, linear-gradient(135deg, #3D97F8, #00277C));
}
.ta-body ol { padding-left: 26px; }
.ta-body ol > li::marker { color: #3B8FED; font-weight: 700; }

/* чек-листы «- [ ]» */
.ta-body ul.ta-check > li { padding-left: 38px; }
.ta-body ul.ta-check > li::before {
	top: .2em;
	width: 22px;
	height: 22px;
	border-radius: 6px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7' fill='none' stroke='%233B8FED' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
	box-shadow: inset 0 0 0 2px #3B8FED;
}

/* иллюстрация */
.ta-body figure { margin: 34px 0; }
.ta-body figure img { display: block; width: 100%; height: auto; border-radius: 20px; }
.ta-body figcaption { margin-top: 10px; color: var(--Grey-TXT, #6C6C6C); font-size: 15px; line-height: 140%; }

/* таблицы: белая карточка, на телефоне листается внутри себя */
.ta-table {
	margin: 10px 0 30px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border-radius: 20px;
	background: var(--White, #FFF);
}
.ta-table table { width: 100%; min-width: 640px; border-collapse: collapse; }
.ta-table th, .ta-table td {
	padding: 16px 22px;
	text-align: left;
	vertical-align: top;
	font-family: var(--font-family);
	font-size: 17px;
	line-height: 140%;
	border-bottom: 1px solid #E6EAF0;
}
.ta-table th { color: #fff; background: #081A42; font-weight: 600; }
.ta-table tr:last-child td { border-bottom: 0; }
.ta-table td { color: #3A4150; font-weight: 500; }
.ta-table td:first-child { color: var(--Black, #0E172B); font-weight: 600; }

blockquote.ta-note, .ta-body blockquote {
	margin: 24px 0;
	padding: 22px 28px;
	border-left: 4px solid #3B8FED;
	border-radius: 0 16px 16px 0;
	background: var(--White, #FFF);
}
.ta-body blockquote p:last-child { margin-bottom: 0; }

/* блок подбора */
.ta-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	margin: 56px 0 24px;
	padding: 40px;
	border-radius: 20px;
	background: linear-gradient(276deg, #0B2A6B 0%, #081A42 80%);
}
.ta-cta p { color: rgba(255, 255, 255, .82); margin: 0; font-size: 18px; }
.ta-cta .ta-cta-title {
	margin: 0 0 10px;
	color: #fff;
	font-family: var(--second-family);
	font-size: 30px;
	line-height: 115%;
	text-transform: uppercase;
}
.ta-cta-actions { display: flex; flex-direction: column; align-items: stretch; gap: 14px; flex-shrink: 0; }
.ta-cta-actions .btn-file-footer { text-decoration: none; white-space: nowrap; }
.ta-body .ta-cta-actions .btn-file-footer { color: #fff; }
.ta-body a.ta-cta-phone { color: #fff; text-align: center; text-decoration: none; font-size: 20px; font-weight: 600; }
.ta-updated { color: var(--Grey-TXT, #6C6C6C) !important; font-size: 16px !important; }

/* «Читайте также» */
.ta-related { padding-bottom: 40px; }
.ta-related-title {
	margin: 0;
	color: var(--Black, #0E172B);
	font-family: var(--second-family);
	font-size: 48px;
	font-weight: 500;
	line-height: 110%;
	text-transform: uppercase;
}
.ta-related .ta-list { padding: 36px 0 30px; }
.ta-all { margin: 0 0 60px; font-family: var(--font-family); font-size: 20px; font-weight: 600; }
.ta-all a { color: #3B8FED; }

/* ---------- адаптив ---------- */
@media screen and (max-width: 1399px) {
	.ta-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; }
	.bg-news-title.ta-hero h1 { font-size: 44px; }
}
@media screen and (max-width: 1199px) {
	.ta-layout { grid-template-columns: minmax(0, 1fr); }
	.ta-toc { display: none; }
}
@media screen and (max-width: 991px) {
	.ta-card .ta-card-title { font-size: 22px; }
	.bg-news-title.ta-hero { min-height: 360px; padding: 40px; margin: 30px auto 50px; }
	.bg-news-title.ta-hero h1 { font-size: 36px; }
	.ta-body h2 { font-size: 30px; margin-top: 44px; }
	.ta-cta { flex-direction: column; align-items: flex-start; padding: 30px; }
	.ta-cta-actions { align-self: stretch; }
	.ta-related-title { font-size: 36px; }
}
@media screen and (max-width: 575px) {
	.ta-archive-lead { font-size: 17px; }
	.bg-news-title.ta-hero { min-height: 300px; padding: 26px 20px; border-radius: 16px; }
	.bg-news-title.ta-hero h1 { font-size: 27px; }
	.bg-news-title.ta-hero p { font-size: 16px; }
	.news-title-date { font-size: 15px; }
	.ta-body p, .ta-body li { font-size: 17px; }
	.ta-body > p:first-child { font-size: 18px; }
	.ta-body h2 { font-size: 24px; margin: 38px 0 16px; }
	.ta-body h3 { font-size: 20px; }
	.ta-table th, .ta-table td { padding: 12px 14px; font-size: 15px; }
	.ta-cta { padding: 24px 20px; }
	.ta-cta .ta-cta-title { font-size: 24px; }
	.ta-cta-actions .btn-file-footer { white-space: normal; text-align: center; }
	.ta-related-title { font-size: 28px; }
	.ta-card .inner-box { padding: 24px 20px 20px; }
}

/* ---------- пагинация списка ---------- */
.ta-pagination { margin: -24px 0 70px; }
.ta-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ta-pagination li { margin: 0; padding: 0; list-style: none; }
.ta-pagination li::before, .ta-pagination li::marker { content: none; }
.ta-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 48px; height: 48px; padding: 0 14px; border-radius: 12px;
	background: var(--White, #FFF); color: var(--Black, #0E172B);
	font-family: var(--font-family); font-size: 18px; font-weight: 500; line-height: 1;
	text-decoration: none; transition: background .2s, color .2s;
}
.ta-pagination a.page-numbers:hover { color: #3B8FED; }
.ta-pagination .page-numbers.current { background: var(--gradient, linear-gradient(135deg, #3D97F8, #00277C)); color: #FFF; }
.ta-pagination .page-numbers.dots { background: transparent; min-width: 24px; padding: 0; }
@media screen and (max-width: 575px) {
	.ta-pagination { margin: -16px 0 50px; }
	.ta-pagination .page-numbers { min-width: 42px; height: 42px; font-size: 16px; }
}

/* ---------- схемы и частые вопросы ---------- */
.ta-body .ta-scheme img { border-radius: 12px; }
.ta-body .ta-faq { margin: 8px 0 0; border-top: 1px solid #DCE3EE; }
.ta-body .ta-faq h3 {
	position: relative; margin: 0; padding: 22px 0 10px 34px;
	color: var(--Black, #0E172B); font-family: var(--font-family); font-size: 20px; font-weight: 600; line-height: 130%;
}
.ta-body .ta-faq h3::before {
	content: "?"; position: absolute; left: 0; top: 22px; width: 24px; height: 24px; border-radius: 50%;
	background: var(--gradient, linear-gradient(135deg, #3D97F8, #00277C)); color: #FFF;
	font-size: 15px; line-height: 24px; text-align: center;
}
.ta-body .ta-faq p { margin: 0; padding: 0 0 22px 34px; border-bottom: 1px solid #DCE3EE; }
@media screen and (max-width: 575px) {
	.ta-body .ta-faq h3 { font-size: 18px; padding-left: 30px; }
	.ta-body .ta-faq p { padding-left: 30px; }
}

/* Тема на ширине до 991 px даёт .wraper фиксированную ширину (767 / 360) без полей - текст у края экрана.
   Для наших блоков: на всю ширину с полями 16 px. */
@media screen and (max-width: 991px) {
	.wraper.ta-crumbs, .wraper.ta-hero, .wraper.ta-layout, .wraper.ta-related, .wraper.ta-archive {
		width: auto !important; max-width: none !important; margin-left: 16px !important; margin-right: 16px !important;
	}
}
