/* -------------------------------------------------------------------------
   04-hero-slider.css — Brutalist Hero Slider
-------------------------------------------------------------------------- */
.enclave-slider,
.enclave-single-slide,
.enclave-slider-fallback {
	margin-bottom: 0;
}

.enclave-slider {
	position: relative;
	width: 100%;
	min-height: min(56vh, 448px);
	background: var(--k);
	border-bottom: var(--b);
}

.enclave-slider .swiper-slide {
	position: relative;
	min-height: min(56vh, 448px);
}

/* Единичный слайд */
.enclave-single-slide {
	position: relative;
	background: var(--k);
	border-bottom: var(--b);
}

.enclave-single-slide__body {
	position: relative;
	min-height: min(56vh, 448px);
	width: 100%;
	box-sizing: border-box;
}

.enclave-slider__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}
.enclave-slider__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.enclave-slider__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg, rgba(13, 13, 13, 0.75) 0%, rgba(13, 13, 13, 0.25) 60%);
}

.enclave-slider__inner {
	position: relative;
	z-index: 2;
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 40px;
	min-height: min(56vh, 448px);
	display: flex;
	flex-direction: column;
	color: var(--w);
}
.enclave-slider__inner--layout-a {
	justify-content: center;
	align-items: flex-start;
}
.enclave-slider__inner--layout-b {
	justify-content: flex-end;
	align-items: stretch;
}
.enclave-slider__inner--layout-c {
	justify-content: center;
	align-items: flex-start;
}
.enclave-slider__layout-bottom {
	display: flex;
	flex-direction: row;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem 1.25rem;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}
.enclave-slider__inner--layout-b .enclave-slider__copy {
	flex: 1 1 0%;
	min-width: 0;
}
.enclave-slider__inner--layout-b .enclave-slider__btns {
	flex-shrink: 0;
	margin-top: 0;
}
.enclave-slider__inner--layout-c .enclave-slider__copy {
	text-align: left;
	max-width: 36rem;
	margin-left: 0;
	margin-right: auto;
	width: 100%;
	box-sizing: border-box;
}
.enclave-slider__inner--layout-c .enclave-slider__text {
	margin-left: 0;
	margin-right: 0;
}
.enclave-slider__inner--layout-c .enclave-slider__btns {
	position: absolute;
	bottom: 1.5rem;
	right: 1.5rem;
	margin-top: 0;
	z-index: 3;
	max-width: calc(100% - 3rem);
}

.enclave-slider__title {
	font-family: var(--enclave-heading-font);
	font-size: clamp(48px, 8vw, 76px);
	line-height: 0.88;
	margin: 0 0 0.5rem;
	font-weight: 400;
	text-transform: uppercase;
	color: var(--w);
}
.enclave-slider__eyebrow {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.35);
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
}
.enclave-slider__eyebrow::before {
	content: '';
	width: 20px;
	height: 2px;
	background: var(--a);
	flex-shrink: 0;
}
.enclave-slider__text {
	font-size: 0.9rem;
	max-width: 36rem;
	margin: 0 0 1.5rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.7);
}
.enclave-slider__btns {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem 0.75rem;
	margin-top: 0.25rem;
}
.enclave-slider__inner--layout-a .enclave-slider__btns,
.enclave-slider__inner--layout-b .enclave-slider__btns {
	position: static;
}
.enclave-slider__inner--layout-d {
	justify-content: center;
	align-items: center;
	padding-bottom: calc(3rem + 2.5rem + 1.5rem);
}
.enclave-slider__inner--layout-d .enclave-slider__copy {
	text-align: center;
	max-width: 48rem;
	width: 100%;
	box-sizing: border-box;
}
.enclave-slider__inner--layout-d .enclave-slider__text {
	margin-left: auto;
	margin-right: auto;
}
.enclave-slider__inner--layout-d .enclave-slider__btns {
	position: absolute;
	bottom: 1.5rem;
	left: 50%;
	transform: translateX(-50%);
	margin-top: 0;
	z-index: 3;
	max-width: calc(100% - 3rem);
	justify-content: center;
}

/* Brutalist CTA кнопка */
.enclave-slider__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: fit-content;
	padding: 14px 28px;
	background: var(--a);
	color: var(--k);
	text-decoration: none;
	font-family: var(--enclave-heading-font);
	font-size: 20px;
	font-weight: 400;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1;
	border: none;
	border-radius: 0;
	outline: none;
	transition: opacity 0.2s;
}
.enclave-slider__btn--secondary {
	background: transparent;
	color: var(--w);
	border: 2px solid rgba(255, 255, 255, 0.5);
}
.enclave-slider__btn--secondary:hover {
	border-color: var(--w);
}
.enclave-slider__btn:hover,
.enclave-slider__btn:focus {
	opacity: 0.88;
}

.enclave-slider .swiper-button-prev,
.enclave-slider .swiper-button-next {
	display: none;
}
.enclave-slider .swiper-pagination-bullet-active {
	background: #fff;
}

/* ── Подзаголовок и цена (лайаут e) ────────────────────── */
.enclave-slider__subtitle {
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.04em;
	color: rgba(255, 255, 255, 0.55);
	margin: 8px 0 0;
	text-transform: uppercase;
}
.enclave-slider__price {
	font-family: var(--enclave-price-font) !important;
	font-size: 32px !important;
	font-weight: 400 !important;
	color: var(--a) !important;
	line-height: 1 !important;
	margin: 16px 0 0;
	letter-spacing: 0.04em;
}

/* Layout e: как layout a + доп. поля */
.enclave-slider__inner--layout-e {
	justify-content: center;
	align-items: flex-start;
}
.enclave-slider__inner--layout-e .enclave-slider__title {
	font-family: var(--enclave-heading-font);
	font-size: 76px !important;
	font-weight: 400 !important;
	line-height: 0.9 !important;
	letter-spacing: 0.02em !important;
	text-transform: uppercase !important;
	color: var(--w) !important;
	margin-bottom: 0 !important;
}
.enclave-slider__inner--layout-e .enclave-slider__text {
	margin-top: 0;
	margin-bottom: 0;
	font-size: 10px;
}
.enclave-slider__inner--layout-e .enclave-slider__price {
	margin: 0 0 12px;
	font-size: 30px !important;
	line-height: 41px !important;
}
.enclave-slider__inner--layout-e .enclave-slider__btn {
	width: 430px;
	height: 59px;
}

/* Во всю ширину viewport */
.enclave-front-main > .enclave-slider.enclave-slider--viewport,
.enclave-front-main > .enclave-single-slide.enclave-single-slide--viewport,
.enclave-front-main > .enclave-slider-fallback.enclave-slider-fallback--viewport {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	max-width: 100vw;
}

.enclave-slider.enclave-slider--viewport,
.enclave-single-slide.enclave-single-slide--viewport,
.enclave-slider-fallback.enclave-slider-fallback--viewport {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	max-width: 100vw;
}

/* Полная высота viewport */
.enclave-slider.enclave-slider--hero-vh,
.enclave-single-slide.enclave-single-slide--hero-vh {
	min-height: 100vh;
	min-height: 100dvh;
	height: 100vh;
	height: 100dvh;
	box-sizing: border-box;
}
.enclave-slider.enclave-slider--hero-vh .swiper.enclave-slider-swiper,
.enclave-slider.enclave-slider--hero-vh .swiper-wrapper,
.enclave-slider.enclave-slider--hero-vh .swiper-slide {
	min-height: 100%;
	height: 100%;
	box-sizing: border-box;
}
.enclave-slider.enclave-slider--hero-vh .swiper-slide:not(.enclave-slider-slide--simplified) .enclave-slider__inner,
.enclave-single-slide.enclave-single-slide--hero-vh:not(.enclave-slider--simplified) .enclave-slider__inner {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	width: 100%;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	min-height: 0;
	height: auto;
	box-sizing: border-box;
}
.enclave-single-slide.enclave-single-slide--hero-vh .enclave-single-slide__body {
	min-height: 100%;
	height: 100%;
	box-sizing: border-box;
}
.enclave-slider--simplified.enclave-slider--hero-vh .enclave-slider-slide--simplified {
	min-height: 100%;
	height: 100%;
}
.enclave-single-slide.enclave-single-slide--hero-vh.enclave-slider--simplified .enclave-slider-slide--simplified {
	min-height: 100%;
	height: 100%;
}
.enclave-slider-fallback.enclave-slider-fallback--hero-vh {
	min-height: 100vh;
	min-height: 100dvh;
	height: 100vh;
	height: 100dvh;
	box-sizing: border-box;
}
.enclave-slider-fallback.enclave-slider-fallback--hero-vh img {
	min-height: 100vh;
	min-height: 100dvh;
	object-fit: cover;
	width: 100%;
}

/* Full-bleed может давать 1-2px overflow */
body.home .site-content {
	overflow-x: clip;
}

/* Editor: в iframe 100vw может ломать горизонтальный скролл — заменяем на 100% */
.editor-styles-wrapper .enclave-slider.enclave-slider--viewport,
.editor-styles-wrapper .enclave-single-slide.enclave-single-slide--viewport {
	width: 100%;
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
}

/* Editor: ограничиваем 100vh в узком iframe, чтобы слайдер не съедал весь экран редактора */
.editor-styles-wrapper .enclave-slider.enclave-slider--hero-vh,
.editor-styles-wrapper .enclave-single-slide.enclave-single-slide--hero-vh {
	min-height: min(72vh, 520px);
	height: min(72vh, 520px);
}

/* Editor: fallback на случай если Swiper CSS не загрузится — слайды в ряд */
.editor-styles-wrapper .enclave-slider .swiper-wrapper {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
}
.editor-styles-wrapper .enclave-slider .swiper-slide {
	flex: 0 0 100%;
	width: 100%;
}

/* Статичный fallback для редактора (один кадр, без swiper-wrapper) */
.enclave-slider__editor-static {
	position: relative;
	overflow: hidden;
	min-height: min(56vh, 448px);
}
.enclave-slider__editor-note {
	position: absolute;
	bottom: 10px;
	right: 10px;
	z-index: 10;
	background: rgba(0, 0, 0, 0.65);
	color: #fff;
	padding: 5px 12px;
	font-size: 11px;
	font-family: var(--enclave-body-font);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* Мобильные стили слайдера */
@media (max-width: 640px) {
	.enclave-slider__inner--layout-b .enclave-slider__layout-bottom {
		flex-direction: column;
		align-items: stretch;
	}
	.enclave-slider__inner--layout-b .enclave-slider__btns {
		align-self: flex-end;
	}
	.enclave-slider__inner--layout-c .enclave-slider__btns {
		position: static;
		align-self: flex-end;
		margin-top: 1rem;
		max-width: 100%;
	}

	.enclave-slider__inner {
		padding-left: 20px;
		padding-right: 20px;
	}
	.enclave-slider__btn {
		padding: 11px 20px;
		font-size: 15px;
		max-width: 100%;
		box-sizing: border-box;
	}
	.enclave-slider__inner--layout-e .enclave-slider__btn {
		width: auto;
		height: auto;
		max-width: 100%;
	}
}

@media (max-width: 768px) {
	.enclave-slider__title {
		font-size: 2.4rem;
	}

	.enclave-tile {
		min-height: 340px;
	}

	.enclave-tile__text {
		font-size: 1.62rem;
	}
}
