.clear-slider {
	--slider-accent: #43b4f9;
	position: relative;
	width: 100%;
	background: #132833;
	color: #fff;
	overflow: hidden;
}

.clear-slider__viewport {
	position: relative;
	aspect-ratio: 2 / 1;
	min-height: 320px;
	max-height: 700px;
}

.clear-slider__track {
	position: relative;
	width: 100%;
	height: 100%;
}

.clear-slider__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 900ms ease, visibility 900ms ease;
}

.clear-slider__slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
}

.clear-slider__media {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.035);
	transition: transform 7s ease-out;
}

.clear-slider__slide.is-active .clear-slider__media {
	transform: scale(1);
}

.clear-slider__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(4, 27, 39, .88) 0%, rgba(4, 27, 39, .6) 48%, rgba(4, 27, 39, .18) 100%);
}

.clear-slider__content {
	position: absolute;
	z-index: 2;
	top: 50%;
	left: 50%;
	width: 100%;
	transform: translate(-50%, -50%);
	padding-right: 42%;
}

.clear-slider__eyebrow {
	margin-bottom: 12px;
	font: 600 15px/1.3 "Google Sans", sans-serif;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #8ed9ff;
}

.clear-slider__title {
	max-width: 720px;
	font: 700 clamp(25px, 3vw, 48px)/1.08 "Google Sans", sans-serif;
	text-transform: uppercase;
}

.clear-slider__content p {
	max-width: 690px;
	margin: 20px 0 0;
	font-size: clamp(14px, 1.4vw, 19px);
	line-height: 1.55;
	color: #fff;
}

.clear-slider__items {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 22px;
	max-width: 760px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
	counter-reset: sale-benefit;
}

.clear-slider__items li {
	position: relative;
	padding-left: 42px;
	font-size: clamp(13px, 1.15vw, 16px);
	line-height: 1.45;
	counter-increment: sale-benefit;
}

.clear-slider__items li::before {
	content: counter(sale-benefit);
	position: absolute;
	top: 0;
	left: 0;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border: 1px solid rgba(255, 255, 255, .55);
	border-radius: 50%;
	font-weight: 700;
}

.clear-slider__promo {
	position: absolute;
	z-index: 3;
	left: 50%;
	bottom: 8%;
	width: min(44%, 628px);
	transform: translateX(-50%);
}

.clear-slider__promo img {
	display: block;
	width: 100%;
	height: auto;
}

.clear-slider__arrow {
	position: absolute;
	z-index: 5;
	top: 50%;
	display: grid;
	place-items: center;
	width: 48px;
	height: 68px;
	padding: 0;
	border: 0;
	background: rgba(0, 0, 0, .42);
	color: #fff;
	font: 300 46px/1 Arial, sans-serif;
	transform: translateY(-50%);
	cursor: pointer;
	transition: background-color 180ms ease;
}

.clear-slider__arrow:hover,
.clear-slider__arrow:focus-visible {
	background: var(--slider-accent);
	outline: 0;
}

.clear-slider__arrow--prev { left: 0; }
.clear-slider__arrow--next { right: 0; }

.clear-slider__dots {
	position: absolute;
	z-index: 5;
	right: 0;
	bottom: 18px;
	left: 0;
	display: flex;
	justify-content: center;
	gap: 9px;
}

.clear-slider__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 1px solid #fff;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
}

.clear-slider__dot.is-active { background: #fff; }

.clear-slider[data-media-ready="false"] .clear-slider__arrow,
.clear-slider[data-media-ready="false"] .clear-slider__dot {
	cursor: wait;
	opacity: .65;
}

.clear-slider--tours .clear-slider__viewport {
	height: 400px;
	min-height: 0;
	max-height: none;
	aspect-ratio: auto;
	overflow: hidden;
}

.clear-slider--tours .clear-slider__track {
	display: flex;
	width: max-content;
	height: 400px;
	transition: transform 650ms cubic-bezier(.22, .61, .36, 1);
	will-change: transform;
}

.clear-slider--tours .clear-slider__track.is-jumping {
	transition: none;
}

.clear-slider--tours .clear-slider__slide {
	position: relative;
	inset: auto;
	flex: 0 0 min(800px, 100vw);
	width: min(800px, 100vw);
	height: 400px;
	opacity: 1;
	visibility: visible;
	overflow: hidden;
	transition: none;
}

.clear-slider--tours .clear-slider__slide::after {
	content: "";
	position: absolute;
	z-index: 2;
	inset: 0;
	background: rgba(0, 0, 0, .7);
	opacity: 1;
	pointer-events: none;
	transition: opacity 400ms ease;
}

.clear-slider--tours .clear-slider__slide.is-active::after {
	opacity: 0;
}

.clear-slider--tours .clear-slider__media,
.clear-slider--tours .clear-slider__slide.is-active .clear-slider__media {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: none;
	transition: none;
}

.clear-slider--tours .clear-slider__arrow--prev {
	left: max(0px, calc(50% - 585px));
}

.clear-slider--tours .clear-slider__arrow--next {
	right: max(0px, calc(50% - 585px));
}

.clear-slider--tours .clear-slider__dots {
	bottom: 14px;
}

.clear-slider--sale .clear-slider__viewport { aspect-ratio: 16 / 8.5; }

.clear-slider--sale {
	background: radial-gradient(circle at 85% 35%, #155a72 0%, #0a3343 32%, #061f2a 72%);
}

.clear-slider--sale .clear-slider__media {
	position: absolute;
	top: 10%;
	right: 5%;
	width: 42%;
	height: 80%;
	object-fit: contain;
}

@media (max-width: 767px) {
	.clear-slider__viewport,
	.clear-slider--sale .clear-slider__viewport {
		aspect-ratio: auto;
		height: 520px;
		min-height: 0;
	}

	.clear-slider__content {
		padding: 36px 54px;
	}

	.clear-slider__items {
		grid-template-columns: 1fr;
		gap: 9px;
	}

	.clear-slider__promo { width: 68%; bottom: 10%; }
	.clear-slider__arrow { width: 38px; height: 56px; font-size: 38px; }
	.clear-slider--sale .clear-slider__media {
		top: 4%;
		right: 4%;
		width: 48%;
		height: 42%;
		opacity: .52;
	}

	.clear-slider--tours .clear-slider__viewport,
	.clear-slider--tours .clear-slider__track,
	.clear-slider--tours .clear-slider__slide {
		height: 250px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.clear-slider__slide,
	.clear-slider__media,
	.clear-slider--tours .clear-slider__track { transition: none; }
}

/* --- вариант «галерея»: слайдер внутри записи блога ------------------ */

/*
 * Слайдер темы в узкой колонке. Высоту задаёт сама картинка: слайды сложены
 * в одну ячейку грида, поэтому пропорции остаются родными, какой бы размер
 * миниатюры ни стоял в шорткоде. Стрелки и точки — как были у flexslider.
 */
.clear-slider--gallery {
	background: transparent;
}

/* height здесь обязателен: на узких экранах базовый слайдер задаёт себе 520px */
.clear-slider--gallery .clear-slider__viewport {
	height: auto;
	aspect-ratio: auto;
	min-height: 0;
	max-height: none;
}

.clear-slider--gallery .clear-slider__track {
	display: grid;
}

.clear-slider--gallery .clear-slider__slide {
	position: relative;
	inset: auto;
	grid-area: 1 / 1;
}

/* WebP Express оборачивает картинку в <picture> — обёртка тоже должна быть блоком. */
.clear-slider--gallery picture {
	display: block;
}

.clear-slider--gallery .clear-slider__media,
.clear-slider--gallery .clear-slider__slide.is-active .clear-slider__media {
	height: auto;
	transform: none;
	transition: none;
}

/*
 * Стрелки показываются при наведении — так же, как было у flexslider.
 * background-size обязателен: в arrow_l.svg нет своих размеров, и без него
 * галочка растягивается на всю подложку и упирается в её края.
 */
.clear-slider--gallery .clear-slider__arrow {
	width: 42px;
	height: 60px;
	border-radius: 3px;
	background: url(../img/arrow_l.svg) no-repeat center center rgba(0, 0, 0, .35);
	background-size: 14px auto;
	font-size: 0;
	opacity: 0;
	transition: opacity 200ms ease, background-color 180ms ease;
}

/* Не впритык к краю картинки — иначе подложка сливается с рамкой кадра. */
.clear-slider--gallery .clear-slider__arrow--prev { left: 14px; }
.clear-slider--gallery .clear-slider__arrow--next { right: 14px; }

@media (max-width: 767px) {
	.clear-slider--gallery .clear-slider__arrow--prev { left: 8px; }
	.clear-slider--gallery .clear-slider__arrow--next { right: 8px; }
}

.clear-slider--gallery:hover .clear-slider__arrow,
.clear-slider--gallery .clear-slider__arrow:focus-visible {
	opacity: 1;
}

/* На тачскрине наводить нечем — там стрелки видно всегда. */
@media (hover: none) {
	.clear-slider--gallery .clear-slider__arrow {
		opacity: 1;
	}
}

.clear-slider--gallery .clear-slider__arrow--next {
	background-image: url(../img/arrow_r.svg);
}

.clear-slider--gallery .clear-slider__arrow:hover,
.clear-slider--gallery .clear-slider__arrow:focus-visible {
	background-color: rgba(0, 0, 0, .6);
}

.clear-slider--gallery .clear-slider__dots {
	bottom: 14px;
	gap: 12px;
}

.clear-slider--gallery .clear-slider__dot {
	width: 12px;
	height: 12px;
	border: 1px solid #fff;
	background: rgba(0, 0, 0, .5);
	box-shadow: 0 0 0 3px rgba(0, 0, 0, .5);
}

.clear-slider--gallery .clear-slider__dot.is-active {
	background: #fff;
}
