/* Каркас страницы для CLS. Подключается до main.css, размеры совпадают с ним. */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	font-size: 8px;
}

@media (min-width: 1280px) {
	html {
		font-size: 9px;
	}
}

@media (min-width: 1900px) {
	html {
		font-size: 10px;
	}
}

body {
	margin: 0;
	width: 100%;
	overflow-x: hidden;
	font-size: 1.6rem;
	line-height: 1.5;
}

img {
	max-width: 100%;
	vertical-align: middle;
	border-style: none;
}

h1, h2, h3, h4, h5, h6 {
	margin-top: 0;
	margin-bottom: 0.5rem;
}

.wrap {
	overflow-x: hidden;
}

.d-none {
	display: none !important;
}

.collapse:not(.show) {
	display: none;
}

@media (min-width: 576px) {
	.d-sm-none {
		display: none !important;
	}
	.d-sm-block {
		display: block !important;
	}
}

@media (min-width: 992px) {
	.d-lg-none {
		display: none !important;
	}
	.d-lg-block {
		display: block !important;
	}
}

.container {
	width: 100%;
	padding-right: 10px;
	padding-left: 10px;
	margin-right: auto;
	margin-left: auto;
}

@media (min-width: 576px) {
	.container {
		max-width: 540px;
	}
}

@media (min-width: 768px) {
	.container {
		max-width: 720px;
	}
}

@media (min-width: 992px) {
	.container {
		max-width: 880px;
	}
}

@media (min-width: 1280px) {
	.container {
		max-width: 1140px;
	}
}

@media (min-width: 1500px) {
	.container {
		max-width: 1200px;
	}
}

.row {
	display: flex;
	flex-wrap: wrap;
	margin-right: -10px;
	margin-left: -10px;
}

.row > [class^="col"],
.row > [class*=" col"] {
	position: relative;
	width: 100%;
	padding-right: 10px;
	padding-left: 10px;
}

.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.33333%; max-width: 33.33333%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-8 { flex: 0 0 66.66667%; max-width: 66.66667%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

.order-1 { order: 1; }
.order-2 { order: 2; }
.order-3 { order: 3; }
.order-4 { order: 4; }
.order-5 { order: 5; }
.order-6 { order: 6; }
.order-7 { order: 7; }
.order-8 { order: 8; }
.order-9 { order: 9; }
.order-10 { order: 10; }
.order-11 { order: 11; }
.order-12 { order: 12; }

@media (min-width: 768px) {
	.col-md-4 { flex: 0 0 33.33333%; max-width: 33.33333%; }
	.col-md-6 { flex: 0 0 50%; max-width: 50%; }
	.col-md-8 { flex: 0 0 66.66667%; max-width: 66.66667%; }
	.col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

@media (min-width: 992px) {
	.col-lg-2 { flex: 0 0 16.66667%; max-width: 16.66667%; }
	.col-lg-3 { flex: 0 0 25%; max-width: 25%; }
	.col-lg-4 { flex: 0 0 33.33333%; max-width: 33.33333%; }
	.col-lg-6 { flex: 0 0 50%; max-width: 50%; }
	.col-lg-8 { flex: 0 0 66.66667%; max-width: 66.66667%; }
	.col-lg-9 { flex: 0 0 75%; max-width: 75%; }
	.col-lg-10 { flex: 0 0 83.33333%; max-width: 83.33333%; }
	.col-lg-12 { flex: 0 0 100%; max-width: 100%; }
	.order-lg-3 { order: 3; }
}

@media (min-width: 1280px) {
	.col-xl-3 { flex: 0 0 25%; max-width: 25%; }
	.col-xl-4 { flex: 0 0 33.33333%; max-width: 33.33333%; }
	.col-xl-8 { flex: 0 0 66.66667%; max-width: 66.66667%; }
	.col-xl-9 { flex: 0 0 75%; max-width: 75%; }
	.col-xl-12 { flex: 0 0 100%; max-width: 100%; }
	.order-xl-4 { order: 4; }
}

#header,
header {
	position: relative;
	top: 0;
	left: 0;
	width: 100%;
	background-color: #fff;
	z-index: 999;
}

.navbar {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	padding: 0.5rem 1rem;
}

.navbar > .container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
}

.navbar-brand {
	display: inline-block;
	padding-top: 1rem;
	padding-bottom: 1rem;
	margin-right: 3rem;
	line-height: inherit;
	white-space: nowrap;
}

.navbar-nav {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	padding-left: 0;
	margin-bottom: 0;
	list-style: none;
	width: 100%;
}

header .navbar {
	padding: 0 0 1rem;
}

.navbar-toggler {
	padding: 0;
	font-size: 2rem;
	line-height: 1;
	background-color: transparent;
	border: 1px solid transparent;
}

.navbar-toggler .navbar-toggler-icon {
	display: block;
	width: 5.5rem;
	height: 5.5rem;
	margin: 0 auto;
	padding-top: 4rem;
	font-size: 1.2rem;
}

@media (max-width: 991.98px) {
	header .navbar {
		padding: 0;
	}
	header .navbar .container .navbar-brand {
		max-width: calc(100% - 10rem);
		margin: 0 1rem;
	}
	header .navbar .container .navbar-toggler {
		margin: 0 1rem;
	}
	header .navbar-collapse {
		position: absolute;
		top: 100%;
		right: 0;
		min-width: 320px;
		max-width: 100%;
		background-color: #fff;
		z-index: 1000;
	}
}

@media (min-width: 992px) {
	.navbar-expand-lg {
		flex-flow: row nowrap;
		justify-content: flex-start;
	}
	.navbar-expand-lg > .container {
		flex-wrap: nowrap;
	}
	.navbar-expand-lg .navbar-collapse {
		display: flex !important;
		flex-basis: auto;
	}
	.navbar-expand-lg .navbar-toggler {
		display: none;
	}
	.navbar-expand-lg .navbar-nav {
		flex-direction: row;
	}
}

.p-section .section-title {
	padding: 1rem;
	width: 100%;
	display: flex;
	justify-content: space-between;
	margin-bottom: 2rem;
}

.p-section .section-title-text {
	font-weight: bold;
	font-size: 3.2rem;
	line-height: 4.2rem;
	margin: 0;
}

.article-card {
	padding: 1rem;
	overflow: hidden;
	margin-bottom: 2rem;
	background-color: #fff;
}

.article-card .article-card-img {
	width: 100%;
}

.article-card .article-img {
	width: 100%;
	height: 0;
	padding-top: 53.846%;
	margin-bottom: 2rem;
	position: relative;
}

.article-card .article-img img {
	position: absolute;
	top: 0;
	left: 0;
	width: 260px;
	height: 140px;
	max-width: none;
	object-fit: fill;
}

.article-card .article-card-title {
	font-weight: bold;
	font-size: 1.6rem;
	line-height: 2.2rem;
	margin-bottom: 1.5rem;
}

@media (max-width: 991.98px) {
	.article-card {
		height: auto;
		display: flex;
	}
	.article-card .article-card-img {
		width: 26rem;
		flex: 0 0 26rem;
		margin-right: 2rem;
	}
	.article-card .article-card-details {
		flex: 1 1 auto;
	}
}

@media (max-width: 767.98px) {
	.article-card .article-card-img {
		display: none;
	}
	.p-section {
		padding-bottom: 3rem;
	}
}

.section-top-news {
	margin-top: 3rem;
	padding-bottom: 4rem;
}

.section-top-news .top-news-slider {
	margin-bottom: 4rem;
}

.section-top-news .top-news-slider .article-card {
	padding: 1rem;
	margin-bottom: 1rem;
	height: auto;
	flex-flow: column;
}

.section-top-news .top-news-slider .article-card .article-card-img .article-img {
	padding-top: 57.5%;
}

.section-top-news .top-news-slider .article-card .article-card-title {
	line-height: 2.4rem;
	margin: 0;
}

.section-top-news .top-news-slider .article-card .article-tags {
	margin-bottom: 1rem;
}

.section-top-news .top-news-slider .article-card .article-card-img,
.section-top-news .top-news-slider .article-card .article-tags {
	display: none;
}

.section-top-news .top-news-slider .article-card time {
	margin-bottom: 0.7rem;
	display: block;
}

.section-top-news .top-news-slider .article-card:first-child {
	float: left;
	width: 57.63333%;
	margin-right: 20px;
}

.section-top-news .top-news-slider .article-card:first-child .article-card-img,
.section-top-news .top-news-slider .article-card:first-child .article-tags {
	display: block;
}

.section-top-news .top-news-slider .article-card:first-child time {
	display: none;
}

.section-top-news .top-news-slider .article-img picture,
.section-top-news .top-news-slider .article-img img {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
}

.top-news-dots {
	display: none;
}

@media (max-width: 991.98px) {
	.section-top-news .top-news-slider .article-card:first-child {
		float: none;
		width: 100%;
		margin-right: 0;
	}
	.section-top-news .top-news-slider .article-card:first-child .article-card-img {
		width: 100%;
		margin-right: 0;
	}
}

@media (max-width: 767.98px) {
	.section-top-news .top-news-slider .article-card .article-card-img,
	.section-top-news .top-news-slider .article-card .article-tags {
		display: block;
	}
	.section-top-news .top-news-slider .article-card time {
		display: none;
	}
	.section-top-news .top-news-slider-holder {
		position: relative;
		margin-bottom: 4rem;
	}
	.section-top-news .top-news-slider-holder > .top-news-slider {
		display: flex;
		flex-wrap: nowrap;
		align-items: stretch;
		overflow-x: auto;
		overflow-y: hidden;
		margin-bottom: 0;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		overscroll-behavior-x: contain;
	}
	.section-top-news .top-news-slider-holder > .top-news-slider::-webkit-scrollbar {
		display: none;
		width: 0;
		height: 0;
	}
	.section-top-news .top-news-slider-holder > .top-news-slider > .article-card,
	.section-top-news .top-news-slider-holder > .top-news-slider > .article-card:first-child {
		flex: 0 0 100%;
		width: 100%;
		min-width: 100%;
		max-width: 100%;
		float: none;
		margin-right: 0;
		margin-bottom: 0;
		scroll-snap-align: start;
	}
	.section-top-news .top-news-slider-holder > .top-news-slider > .article-card .article-card-img,
	.section-top-news .top-news-slider-holder > .top-news-slider > .article-card:first-child .article-card-img {
		display: block;
		width: 100%;
		flex: 0 0 auto;
		margin-right: 0;
	}
	.section-top-news .top-news-dots {
		display: flex;
		justify-content: center;
		align-items: center;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		height: 3rem;
		margin: 0.5rem 0 0;
		padding: 0;
	}
	.section-top-news .top-news-dots button {
		position: relative;
		width: 2.5rem;
		height: 2.5rem;
		margin: 0 1rem;
		padding: 0;
		border: 0;
		background: transparent;
		cursor: pointer;
	}
	.section-top-news .top-news-dots button::before {
		content: "";
		position: absolute;
		top: 50%;
		left: 50%;
		width: 0.4rem;
		height: 0.4rem;
		margin: -0.2rem 0 0 -0.2rem;
		background-color: #485967;
	}
	.section-top-news .top-news-dots button.is-active::before {
		width: 0.8rem;
		height: 0.8rem;
		margin: -0.4rem 0 0 -0.4rem;
		background-color: #E0132F;
	}
}

/*
 * Слайдеры до инициализации скрипта.
 * Число видимых карточек совпадает с activeConfig в js/main.js:
 * срабатывает первое условие width < breakpoint.
 */
.slider-articles-4:not(.slick-initialized),
.slider-articles-3:not(.slick-initialized),
.slider-articles-2:not(.slick-initialized),
.slider-articles-1:not(.slick-initialized) {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	overflow: hidden;
}

.slider-articles-4:not(.slick-initialized) > *,
.slider-articles-3:not(.slick-initialized) > *,
.slider-articles-2:not(.slick-initialized) > *,
.slider-articles-1:not(.slick-initialized) > * {
	flex: 0 0 auto;
	min-width: 0;
	max-width: 100%;
}

.slider-articles-4:not(.slick-initialized) > * {
	flex-basis: 25%;
	width: 25%;
}

.slider-articles-3:not(.slick-initialized) > * {
	flex-basis: calc(100% / 3);
	width: calc(100% / 3);
}

.slider-articles-2:not(.slick-initialized) > * {
	flex-basis: 50%;
	width: 50%;
}

.slider-articles-1:not(.slick-initialized) > * {
	flex-basis: 100%;
	width: 100%;
}

@media (max-width: 1198.98px) {
	.slider-articles-4:not(.slick-initialized) > * {
		flex-basis: calc(100% / 3);
		width: calc(100% / 3);
	}

	.slider-articles-3:not(.slick-initialized) > * {
		flex-basis: 50%;
		width: 50%;
	}
}

@media (max-width: 990.98px) {
	.slider-articles-3:not(.slick-initialized) > * {
		flex-basis: calc(100% / 3);
		width: calc(100% / 3);
	}

	.slider-articles-2:not(.slick-initialized) > * {
		flex-basis: 100%;
		width: 100%;
	}
}

@media (max-width: 767.98px) {
	.slider-articles-4:not(.slick-initialized) > * {
		flex-basis: 50%;
		width: 50%;
	}

	.slider-articles-3:not(.slick-initialized) > * {
		flex-basis: 50%;
		width: 50%;
	}
}

@media (max-width: 574.98px) {
	.slider-articles-4:not(.slick-initialized) > *,
	.slider-articles-3:not(.slick-initialized) > *,
	.slider-articles-2:not(.slick-initialized) > *,
	.slider-articles-1:not(.slick-initialized) > * {
		flex-basis: 100%;
		width: 100%;
	}
}

/* Слайдер в тексте: один кадр, как slidesToShow 1 и adaptiveHeight. */
.articl-text .content-slider:not(.slick-initialized) {
	display: block;
	overflow: hidden;
	margin-bottom: 5rem;
	margin-left: -1rem;
	margin-right: -1rem;
}

.articl-text .content-slider:not(.slick-initialized) > * {
	padding-left: 1rem;
	padding-right: 1rem;
}

.articl-text .content-slider:not(.slick-initialized) > :nth-child(n+2) {
	display: none;
}

/* Блог на главной: 3 ряда по 2, ниже 991px — 3 ряда по 1. */
.slider-blog-home:not(.slick-initialized) {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.6rem;
	overflow: hidden;
}

.slider-blog-home:not(.slick-initialized) > :nth-child(n+7) {
	display: none;
}

@media (max-width: 990.98px) {
	.slider-blog-home:not(.slick-initialized) {
		grid-template-columns: minmax(0, 1fr);
	}

	.slider-blog-home:not(.slick-initialized) > :nth-child(n+4) {
		display: none;
	}
}

/* Личные блоги: 3×3, ниже 767px — одна карточка на всю ширину. */
.slider-blog-personal:not(.slick-initialized) {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.6rem;
	overflow: hidden;
}

.slider-blog-personal:not(.slick-initialized) > :nth-child(n+10) {
	display: none;
}

@media (max-width: 766.98px) {
	.slider-blog-personal:not(.slick-initialized) {
		display: flex;
		flex-wrap: nowrap;
		align-items: flex-start;
		gap: 0;
	}

	.slider-blog-personal:not(.slick-initialized) > :nth-child(n) {
		display: block;
		flex: 0 0 100%;
		width: 100%;
		min-width: 0;
		max-width: 100%;
	}
}
