/* Страница «Документ» (templates-new/document-new.php) */

.document-main-new {
	display: flex;
	justify-content: center;
	width: 100%;
	background-color: hsla(0, 0%, 88%, 1);
	padding: 45px 0;
	box-sizing: border-box;
	overflow-x: hidden;
}

.document-main-new .document-content {
	width: 100%;
	max-width: 1300px;
	min-width: 0;
}

.document-page__panel {
	background-color: #000;
	border-radius: 30px;
	padding: 48px 40px;
	box-sizing: border-box;
	border: 1px solid rgba(255, 255, 255, 0.12);
	max-width: 100%;
	min-width: 0;
}

.document-page__title {
	margin: 0 0 46px;
	font-size: 54px;
	font-weight: 700;
	line-height: 1.15;
	color: #fff;
	text-transform: uppercase;
	overflow-wrap: break-word;
}

.document-page__empty {
	margin: 0;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.55);
}

.document-page__items {
	display: flex;
	flex-direction: column;
	gap: 32px;
	min-width: 0;
	max-width: 100%;
	width: 100%;
	box-sizing: border-box;
}

.document-page__item {
	display: flex;
	flex-direction: column;
	gap: 18px;
	min-width: 0;
	max-width: 100%;
	width: 100%;
	box-sizing: border-box;
}

.document-page__item-title {
	margin: 0;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
	color: #fff;
	overflow-wrap: break-word;
}

.document-page__item-description {
	margin: 0;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.88);
	text-transform: none;
	overflow-wrap: break-word;
	max-width: 100%;
}

.document-page__item-description p {
	margin: 0 0 0.75em;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	color: inherit;
	text-transform: none;
	overflow-wrap: break-word;
	max-width: 100%;
}

.document-page__item-description p:last-child {
	margin-bottom: 0;
}

/* Контент из wp_kses_post не должен раздувать flex-элемент по min-content */
.document-page__item-description :where(img, video) {
	max-width: 100%;
	height: auto;
}

.document-page__item-description iframe {
	max-width: 100%;
}

.document-page__item-description :where(pre, table) {
	max-width: 100%;
	overflow-x: auto;
}

@media (max-width: 768px) {
	.document-main-new {
		padding: 24px 0px 24px;
	}

	.document-page__panel {
		padding: 25px;
		border-radius: 24px;
	}

	.document-page__title {
		margin: 0 0 60px;
		font-size: 32px;
	}

	.document-page__item-title {
		font-size: 24px;
	}

	.document-page__item-description {
		font-size: 16px;
	}

	.document-page__empty {
		font-size: 16px;
	}
}
