/**
 * Анти-CLS для слайдеров до инициализации JS (главная и др.).
 */

/* Fotorama: сырой <a><img> не показывать до .fotorama__wrap */
.fotorama:not(:has(.fotorama__wrap)):not(.fotorama-is-ready) > a,
.fotorama:not(:has(.fotorama__wrap)):not(.fotorama-is-ready) > img {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.fotorama.rightslide:not(:has(.fotorama__wrap)):not(.fotorama-is-ready) {
	display: block;
	width: 336px;
	max-width: 100%;
	height: 314px;
	max-height: 314px;
	background-color: var(--color-bg-light, #eef1f4);
}

/* Деталь новости: один слайд — не скрывать до Fotorama (иначе LCP откладывается) */
.fotorama--single-slide:not(:has(.fotorama__wrap)):not(.fotorama-is-ready) > a:first-child {
	display: block;
	position: static;
	width: auto;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
	overflow: visible;
	clip: auto;
	white-space: normal;
}
.fotorama--single-slide:not(:has(.fotorama__wrap)):not(.fotorama-is-ready) > a:first-child img {
	position: static;
	display: block;
	width: auto;
	max-width: 100%;
	max-height: 600px;
	height: auto;
	margin-left: auto;
	margin-right: auto;
	overflow: visible;
	clip: auto;
	white-space: normal;
	border: 0;
}

/* bxSlider: резерв высоты до init (без visibility — ломает клоны infiniteLoop) */
.slider--banners .bxslider {
	min-height: 314px;
	overflow: hidden;
}
@media only screen and (max-width: 604px) {
	.top-block .slider--banners {
		height: auto;
		min-height: 0;
		aspect-ratio: auto;
	}
	.slider--banners .bxslider {
		min-height: 0;
	}
}

/* Шапка: кнопки «Сообщи о допинге» — резерв до загрузки PNG (только широкий экран) */
@media (min-width: 1016px) {
	.header .header-actions-left {
		min-width: 167px;
	}
}
.header .oneplus,
.header .twoplus {
	display: block;
	height: 25px;
	width: auto;
	max-height: 25px;
	object-fit: contain;
}
.header .oneplus {
	aspect-ratio: 165 / 107;
	max-width: 39px;
}
.header .twoplus {
	aspect-ratio: 521 / 107;
	max-width: 122px;
}
