/* =========================================================================
   SPIVMIR — стили печати.
   Файл подключается каркасом как обычный CSS (media="all"), поэтому все
   правила обёрнуты в @media print и на экран не влияют.
   Задача: на бумагу попадает только контент — прайс, услуги, контакты.
   ========================================================================= */

@media print {

	/* --- 1. Базовая страница ---------------------------------------------- */

	@page {
		margin: 15mm 12mm;
	}

	html {
		font-size: 62.5%;
	}

	body {
		background: #fff !important;
		color: #000 !important;
		font-size: 11pt;
		line-height: 1.4;
	}

	/* --- 2. Что не печатаем ----------------------------------------------- */

	.topbar,
	.mainnav,
	.breadcrumbs,
	.popular,
	.footer,
	.home-slider,
	.home-menu,
	.home-vk,
	.news-card__more,
	.price__toc,
	.skip-link,
	.btn--cta,
	.back-top,
	.child-pages__image,
	#wpadminbar,
	iframe,
	video,
	noscript {
		display: none !important;
	}

	/* --- 3. Контейнеры: во всю ширину листа -------------------------------- */

	.container,
	.container--wide,
	.content,
	#content {
		width: auto !important;
		max-width: none !important;
		margin: 0 !important;
		padding: 0 !important;
		float: none !important;
		box-shadow: none !important;
	}

	.row,
	.cols,
	.cols--2,
	.cols--3,
	.cols--4,
	.cols--5 {
		display: block !important;
	}

	/* --- 4. Заголовок страницы вместо зелёного баннера --------------------- */

	.masthead {
		background: none !important;
		color: #000 !important;
		/* На экране баннер вынесен за боковые поля контейнера и отбит внутри —
		   на бумаге ни того, ни другого не нужно. */
		margin: 0 !important;
		padding: 0 0 6mm !important;
		min-height: 0 !important;
	}

	.masthead__inner {
		padding: 0 !important;
	}

	.masthead h1,
	.jamasshead-title {
		color: #000 !important;
		font-size: 20pt !important;
		text-shadow: none !important;
	}

	h2,
	h3,
	h4 {
		color: #000 !important;
		page-break-after: avoid;
		break-after: avoid;
	}

	/* --- 5. Ссылки: печатаем адрес ---------------------------------------- */

	a {
		color: #000 !important;
		text-decoration: underline;
	}

	.content a[href^="http"]::after,
	.content a[href^="/"]::after {
		content: " (" attr(href) ")";
		font-size: 9pt;
		word-break: break-all;
	}

	.content a[href^="tel:"]::after,
	.content a[href^="mailto:"]::after,
	.content a[href^="#"]::after {
		content: "";
	}

	abbr[title]::after {
		content: " (" attr(title) ")";
	}

	/* --- 6. Таблицы и картинки -------------------------------------------- */

	.table-scroll {
		overflow: visible !important;
	}

	table {
		border-collapse: collapse;
		width: 100% !important;
	}

	table,
	th,
	td {
		border-color: #999 !important;
	}

	thead {
		display: table-header-group;
	}

	tr,
	img,
	figure,
	li {
		page-break-inside: avoid;
		break-inside: avoid;
	}

	img {
		max-width: 100% !important;
		height: auto !important;
	}

	/* --- 7. Служебное ------------------------------------------------------ */

	.note {
		border: 1px solid #999 !important;
		background: none !important;
	}
}
