/* Стили для печати */
@media print {

	/* Скрываем ненужные элементы, но оставляем логотип */
	.header {
		display: block !important;
		position: static !important;
		background: none !important;
		height: auto !important;
		padding: 0 !important;
		box-shadow: none !important;
		text-align: center;
	}

	/* Показываем только логотип и контакты в навигации */
	nav {
		display: block !important;
		background: none !important;
		padding: 0 !important;
		margin: 0 0 0.2in 0 !important;
		text-align: center;
	}

	.mobileMenuBtn,
	.feature-details-btn,
	.warning,
	.footer-info,
	.external-link,
	.tooltiptext,
	.promo-reestr,
	.btn,
	#top_menu {
		display: none !important;
	}

	/* Показываем контакты для печати */
	.contacts {
		display: block !important;
		margin: 0 !important;
		padding: 0 !important;
		text-align: center;
	}

	.contact-item {
		display: inline-block !important;
		margin: 0 0.2in !important;
		padding: 0 !important;
		page-break-inside: avoid;
	}

	.contact-item a {
		text-decoration: none !important;
		color: black !important;
		padding: 0 !important;
		margin: 0 !important;
	}

	.contact-item .icon {
		display: none !important;
		/* Скрываем иконки при печати */
	}

	/* Показываем только логотип */
	.logo {
		display: block !important;
		text-align: center;
		margin: 0 auto 0.3in auto;
		page-break-before: avoid;
		width: 100% !important;
	}

	.logo svg {
		display: block !important;
		visibility: visible !important;
		width: 250px !important;
		height: 60px !important;
		fill: #0178c8 !important;
		margin: 0 auto;
	}


	/* Базовые настройки */
	* {
		background-color: white !important;
		color: black !important;
		box-shadow: none !important;
		text-shadow: none !important;
	}

	body {
		font-family: "Times New Roman", Times, serif;
		font-size: 12pt;
		line-height: 1.4;
		margin: 0;
		padding: 0.5in;
		width: 100%;
	}

	.sr-only {
		display: block !important;
		position: static !important;
		width: auto !important;
		height: auto !important;
		padding: 0 !important;
		margin: 0 !important;
		overflow: visible !important;
		clip: auto !important;
		white-space: normal !important;
		border: none !important;
	}

	/* Типография для печати */
	h1,
	h2,
	h3,
	h4,
	h5,
	h6 {
		page-break-after: avoid;
		font-family: Arial, sans-serif;
	}

	h1 {
		font-size: 18pt;
		margin: 0.1in 0 0.1in;
	}

	h2 {
		font-size: 16pt;
		margin: 0.1in 0 0.1in;
		border-bottom: 1pt solid #ccc;
		padding-bottom: 2pt;
	}

	h3 {
		font-size: 14pt;
		margin: 0.1in 0 0.1in;
	}

	p,
	li {
		font-size: 12pt;
		padding: 0 !important;
		margin: 0.05in 0 0 0 !important;
	}

	/* Ссылки */
	a {
		text-decoration: underline;
		color: #000 !important;
	}

	a[href^="http"]:after {
		content: " (" attr(href) ")";
		font-size: 10pt;
		font-style: italic;
	}

	a[href^="#"]:after,
	a[href^="javascript:"]:after {
		content: "";
	}

	/* Изображения */
	img {
		max-width: 6in !important;
		height: auto !important;
		display: block;
		margin: 0.1in auto;
		border: 1pt solid #ccc;
	}

	/* Контейнеры и секции */
	.container,
	section {
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	/* Карточки и блоки */
	.feature-card,
	.price-card,
	.footer {
		border: none !important;
		page-break-inside: avoid;
		margin: 0.1in 0 !important;
		padding: 0.1in !important;
		box-shadow: none !important;
	}

	.features-flex,
	.price-flex {
		display: block !important;
	}

	/* Списки */
	ul,
	ol {
		margin: 0.05in 0 0 0 !important;
	}

	/* Таблицы (если есть) */
	table {
		border-collapse: collapse;
		width: 100%;
		margin: 0.2in 0;
	}

	th,
	td {
		border: 1pt solid #ccc;
		padding: 5pt;
	}

	th {
		background-color: #f0f0f0 !important;
	}

	/* Разрывы страниц */
	.page-break {
		page-break-before: always;
	}

	/* Промо-секция */
	.promo {
		background: none !important;
		padding: 0 !important;
		margin: 0 0 0.1in !important;
	}

	.promo-container {
		display: block !important;
	}

	.promo h1 {
		text-align: center;
		margin-bottom: 0.1in;
	}

	/* Секции "О программе" */
	.about-section-content {
		display: block !important;
		page-break-inside: avoid;
	}

	.about-left,
	.about-right {
		width: 100% !important;
		margin: 0.1in 0;
	}

	/* Награды */
	.awards-conteiner {
		display: block !important;
		page-break-inside: avoid;
	}

	/* Убираем flex/grid для печати */
	.features-flex,
	.price-flex,
	.about-section-content,
	.awards-conteiner,
	.footer-container {
		display: block !important;
	}

	/* Управление разрывами страниц */
	h2,
	h3 {
		page-break-after: avoid;
	}

	.feature-card,
	.price-card,
	.about,
	.awards {
		page-break-inside: avoid;
	}

	/* Номера страниц */
	@page {
		margin: 0.2in;
		size: A4 portrait;

		@bottom-right {
			content: "Страница " counter(page) " из " counter(pages);
			font-size: 10pt;
			font-family: Arial, sans-serif;
		}

		@top-left {
			content: "МКТ-Web Внутренний контроль качества и безопасности медицинской деятельности";
			font-size: 10pt;
			font-family: Arial, sans-serif;
		}
	}

	/* Первая страница без верхнего колонтитула */
	@page :first {
		@top-left {
			content: "";
		}
	}

}