/* ============================================================
   patch.css — правки поверх style.css.
   Подключается ПОСЛЕ style.css, сам style.css не трогаем.
   ============================================================ */

/* --- Базовая защита от горизонтальной прокрутки на телефонах --- */
html, body { max-width: 100%; overflow-x: hidden; }
* { -webkit-text-size-adjust: 100%; }

/* Картинки и медиа никогда не шире экрана */
img, svg, video, iframe, table { max-width: 100%; }
img:not([width]), img:not([height]) { height: auto; }

/* Поля ввода не вылезают за экран и не вызывают зум на iOS */
input, textarea, select, button {
	max-width: 100%;
	box-sizing: border-box;
	font-family: inherit;
}
input, textarea, select { font-size: 16px; }

/* Длинные слова и ссылки не растягивают верстку */
p, li, h1, h2, h3, h4, td { overflow-wrap: break-word; word-break: break-word; }

/* --- Заголовки на маленьких экранах --- */
@media (max-width: 767px) {
	.title--xxl { font-size: 32px; line-height: 1.2; }
	.title--xl  { font-size: 26px; line-height: 1.25; }
	.fit-wide   { padding-left: 16px; padding-right: 16px; }
	/* блоки с фиксированной шириной из инлайн-стилей */
	[style*="width:600px"], [style*="width: 600px"],
	[style*="width:800px"], [style*="width: 800px"],
	[style*="width:1200px"], [style*="width: 1200px"],
	[style*="width:486px"], [style*="width: 486px"] { width: 100% !important; }
}

/* Кликабельные элементы — минимум 44px по высоте (требование мобильного юзабилити) */
@media (max-width: 767px) {
	.header__mobile-nav-btn { min-width: 44px; min-height: 44px; }
	a.button, button, .btn { min-height: 44px; }
}

/* --- Ссылка «перейти к содержимому» для клавиатуры и скринридеров --- */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	padding: 10px 16px;
	background: #27278E;
	color: #fff;
	border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* Видимый фокус для клавиатурной навигации */
a:focus-visible, button:focus-visible, input:focus-visible, label:focus-visible {
	outline: 2px solid #27278E;
	outline-offset: 2px;
}

/* --- Cookie-баннер --- */
.cookie-alert {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 50;
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 780px;
	margin: 0 auto;
	padding: 12px 16px;
	background: #fff;
	border: 1px solid #d9d9e3;
	border-radius: 12px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .12);
}
.cookie-alert[hidden] { display: none; }
.cookie-alert__pic {
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	background: url(/img/cookie-pic.png) no-repeat 50% / contain;
}
.cookie-alert__text { margin: 0; font-size: 13px; line-height: 1.4; }
.cookie-alert__btn {
	flex: 0 0 auto;
	padding: 10px 18px;
	border: 0;
	border-radius: 24px;
	background: #27278E;
	color: #fff;
	font-size: 14px;
	cursor: pointer;
}
@media (max-width: 600px) {
	.cookie-alert { flex-wrap: wrap; justify-content: center; text-align: center; }
	.cookie-alert__btn { width: 100%; }
}

/* --- Печать --- */
@media print {
	.header, .footer, .promobars, .cookie-alert { display: none !important; }
}
