.lib_line
{
	background-image: url(../images/design/news_line_h.gif);
	background-repeat: repeat-x;
	background-position: top;
	height: 3px;
}
.lib_line_v
{
	background-image: url(../images/design/news_line_v.gif);
	background-repeat: repeat-y;
	background-position: left;
	width: 3px;
}
.lib_layout {
	table-layout: fixed;
	max-width: 100%;
}
.lib_article_cell {
	width: 100%;
	max-width: 0;
	padding-top: 0.6rem;
	padding-bottom: 0.6rem;
}
.lib_article_content {
	max-width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	overflow-wrap: break-word;
	word-break: break-word;
}
.lib_article_content img {
	max-width: 100%;
	height: auto;
}
.lib_article_content table {
	max-width: 100%;
}
.lib_article_content > table {
	width: 100%;
	max-width: 100%;
}
.lib_article_content iframe {
	max-width: 100%;
}
.lib_mobile_table_cards {
	display: none;
}
.lib_article_content > table.lib_has_mobile_cards td:first-child,
.lib_article_content > table.lib_has_mobile_cards th:first-child {
	min-width: 5.5rem;
	overflow-wrap: normal;
	word-break: normal;
}
.lib_section {
	font-size: 0.5rem;
}
.lib_section:link
{
	color: green;
}
.lib_section:active
{
	color: green;
}
.lib_section:hover
{
	color: red;
}
.lib_section:visited
{
	color: green;
}

@media only screen and (max-width: 600px) {
	.lib_article_content > table.lib_has_mobile_cards {
		display: none;
	}
	.lib_mobile_table_cards {
		display: block;
	}
	.lib_mobile_table_title {
		margin: 0 0 0.5rem;
		font-weight: bold;
		text-align: center;
	}
	.lib_mobile_table_card {
		display: grid;
		grid-template-columns: 4.5rem minmax(0, 1fr);
		gap: 0.5rem;
		margin: 0 0 0.6rem;
		padding: 0.5rem;
		border: 1px solid #6f8d99;
		background: rgba(255, 255, 255, 0.16);
	}
	.lib_mobile_table_card_media {
		text-align: center;
	}
	.lib_mobile_table_card_media img {
		max-width: 4rem;
		height: auto;
	}
	.lib_mobile_table_card_body {
		min-width: 0;
	}
	.lib_mobile_table_card_title {
		margin: 0 0 0.25rem;
		font-weight: bold;
		line-height: 1.2;
	}
	.lib_mobile_table_card_field,
	.lib_mobile_table_card_description {
		margin: 0.1rem 0 0;
		line-height: 1.25;
		overflow-wrap: break-word;
		word-break: break-word;
	}
	.lib_mobile_table_card_label {
		font-weight: bold;
	}
	.lib_article_content > table.lib_cards_table {
		width: 100%;
		min-width: 0;
		border: 0;
	}
	.lib_cards_table tbody,
	.lib_cards_table tr,
	.lib_cards_table th,
	.lib_cards_table td {
		display: block;
		box-sizing: border-box;
	}
	.lib_cards_table tr:nth-child(1),
	.lib_cards_table tr:nth-child(2) {
		display: none;
	}
	.lib_cards_table tr:nth-child(n+3):nth-child(odd) {
		display: grid;
		grid-template-columns: 4.5rem minmax(0, 1fr);
		column-gap: 0.5rem;
		padding: 0.5rem 0.5rem 0.25rem;
		border: 1px solid #6f8d99;
		border-bottom: 0;
		background: rgba(255, 255, 255, 0.16);
	}
	.lib_cards_table tr:nth-child(n+3):nth-child(even) {
		margin: 0 0 0.6rem;
		padding: 0 0.5rem 0.5rem 5.5rem;
		border: 1px solid #6f8d99;
		border-top: 0;
		background: rgba(255, 255, 255, 0.16);
	}
	.lib_cards_table tr:nth-child(n+3):nth-child(odd) td {
		border: 0;
		padding: 0.05rem 0;
	}
	.lib_cards_table tr:nth-child(n+3):nth-child(odd) td:first-child {
		grid-column: 1;
		grid-row: 1 / 5;
		text-align: center;
	}
	.lib_cards_table tr:nth-child(n+3):nth-child(odd) td:not(:first-child) {
		grid-column: 2;
	}
	.lib_cards_table tr:nth-child(n+3):nth-child(odd) td:nth-child(2) {
		font-weight: bold;
		line-height: 1.2;
	}
	.lib_cards_table tr:nth-child(n+3):nth-child(odd) td:nth-child(3)::before {
		content: "Куда: ";
		font-weight: bold;
	}
	.lib_cards_table tr:nth-child(n+3):nth-child(odd) td:nth-child(4)::before {
		content: "Тип: ";
		font-weight: bold;
	}
	.lib_cards_table tr:nth-child(n+3):nth-child(odd) td:nth-child(5)::before {
		content: "Стоимость: ";
		font-weight: bold;
	}
	.lib_cards_table tr:nth-child(n+3):nth-child(even) td {
		border: 0;
		padding: 0;
	}
	.lib_cards_table img {
		max-width: 4rem;
		height: auto;
	}
}
