/*
 * Additions on top of the theme "app" (its CSS is not rewritten): loaded after the theme stylesheets
 * by site.layouts.main. Only repairs of broken layout and the few rules of pages the theme did not have
 * (news archive, rules pages in the common layout).
 */

/* ---------- Inner pages (rules, news archive): the header is fixed, the content starts below it,
   at the same height as on the old rules pages. ---------- */
.b-inner-page {
	padding-top: 110px;
	padding-bottom: 80px;
}
/* The decoration .b-dots has a fixed height of 2238px (the home page); on a shorter page it made
   a white strip under the footer. It never reaches past the page now. */
.b-dots {
	max-height: 100%;
}
@media (max-width: 1199px) {
	.b-inner-page {
		padding-top: 84px;
	}
}
@media (max-width: 479px) {
	.b-inner-page {
		padding-top: 74px;
		padding-bottom: 50px;
	}
}

/* ---------- Rules pages (/rules/*.html): the old text block, links were white <font> tags. ---------- */
.b-rules__text,
.b-rules__text b,
.b-rules__text p {
	/* The theme centres .b-advantages-item__text on narrow screens; a long legal text reads left-aligned. */
	text-align: left;
	overflow-wrap: break-word;
	word-wrap: break-word;
}
.b-rules .b-title-item {
	overflow-wrap: break-word;
	word-wrap: break-word;
}
@media (max-width: 479px) {
	/* «КОНФИДЕНЦИАЛЬНОСТИ» in one word did not fit 375px and went past the right edge. */
	.b-rules .b-title-item {
		font-size: 22px;
	}
}
.b-rules__text a {
	color: #FFFFFF;
}
.b-rules__text a:hover {
	color: #E4982F;
}
.b-rules__text ul,
.b-rules__text ol {
	margin: 0 0 16px 0;
	padding-left: 22px;
	color: #F8DFC1;
	font-weight: 500;
	font-size: 16px;
	line-height: 1.5;
}
.b-rules__text ul li {
	list-style: disc;
}
.b-rules__text ol li {
	list-style: decimal;
}
.b-rules__text h2,
.b-rules__text h3,
.b-rules__text h4 {
	font-family: 'TrajanPro3';
	font-weight: 600;
	font-size: 17px;
	line-height: 1.2;
	color: #FFFFFF;
	margin: 24px 0 13px 0;
}

/* ---------- News archive (/news) ---------- */
.b-news-archive .b-news-col {
	margin-bottom: 20px;
}
@media (max-width: 479px) {
	/* On the home page the four cards scroll sideways; twelve archive cards go one under another. */
	.b-news-archive .b-news-row {
		overflow: visible;
		flex-wrap: wrap;
	}
	.b-news-archive .b-news-col {
		width: 100%;
		margin-bottom: 20px;
	}
}
.b-news-archive__empty {
	border: 2px solid #473E38;
	border-radius: 4px;
	box-sizing: border-box;
	text-align: center;
	color: #F8DFC1;
	font-size: 18px;
	font-weight: 500;
	padding: 60px 16px;
}
.b-news-archive__note {
	margin: 32px 0 0 0;
	text-align: center;
	color: #F8DFC1;
	opacity: 0.4;
	font-weight: 500;
	font-size: 14px;
	line-height: 1.4;
}
.b-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 20px 0 0 0;
}
.b-pagination a,
.b-pagination span.yellow-btn {
	min-width: 41px;
	padding: 3px 12px 0 12px;
	box-sizing: border-box;
}
.b-pagination__dots {
	display: block;
	line-height: 41px;
	color: #F8DFC1;
}

/* ---------- Social column: an own SVG icon instead of an icomoon one ---------- */
.b-social__img {
	width: 24px;
	height: 24px;
	object-fit: contain;
}

/* The theme centres the .b-advantages background on narrow screens (for the short home section);
   on a long rules page it would sit in the middle of the text — keep it at the top as before. */
.b-rules {
	background-position: center top;
}

/* ---------- Pictures of the site layout: no alt text while the picture is not there yet ---------- */
/* Until a picture comes (on a slow connection, a lazy news cover scrolled to, a banner before slick gives it its src
   from data-lazy) the browser prints its alt text in link blue over the empty box. The alt stays for search engines
   and screen readers. Pictures in the text of pages (rules) keep a visible alt. */
.b-promo-item img,
.b-news-item__img img,
.b-streams-item__wrap img,
.b-logo img,
.b-footer-logo img,
.b-language img {
	color: transparent;
}

/* ...and no underline either: the link around such a picture keeps the browser's own underline, drawn in link blue
   under the hidden text. */
.b-news-item__img,
.b-logo,
.b-footer-logo,
.b-language a {
	text-decoration: none;
}

/* ---------- Home banners: the blurred preview under the picture (BlurPreview), cut like the picture ---------- */
.b-promo-item__bg {
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	border-radius: 4px;
}
