/* Japan Scroll для Elementor, v1.1 */

/* Примагничивание: класс на <html> добавляет JS (только на сайте, не в редакторе) */
html.jse-snap-on.jse-snap-mandatory { scroll-snap-type: y mandatory; }
html.jse-snap-on.jse-snap-proximity { scroll-snap-type: y proximity; }
@media (prefers-reduced-motion: reduce) {
	html.jse-snap-on.jse-snap-mandatory { scroll-snap-type: y proximity; }
}

.jse-wrapper {
	position: relative;
	width: 100%;
}

.jse-slide {
	position: relative;
	display: flex;
	align-items: flex-end;
	width: 100%;
	height: 100vh;
	height: 100dvh; /* на телефонах 100vh больше видимой области, и кнопка уезжала под панель браузера */
	overflow: hidden;
	isolation: isolate;
	color: #fff;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	background: linear-gradient(160deg, #1d2b3a 0%, #3b5266 100%); /* запасной фон, пока нет картинки */
}
.jse-slide:nth-of-type(3n+2) { background: linear-gradient(160deg, #1f3a35 0%, #5b8a7e 100%); }
.jse-slide:nth-of-type(3n+3) { background: linear-gradient(160deg, #2d3a2a 0%, #6c8a5b 100%); }

/* Фон выше и ниже секции на 15% — запас для параллакса */
.jse-bg {
	position: absolute;
	top: -15%;
	bottom: -15%;
	left: 0;
	right: 0;
	background-size: cover;
	background-position: center;
	will-change: transform;
}

.jse-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

/* Сцена: надпись и гигантское слово по центру, под вырезанным объектом */
.jse-stage {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.jse-eyebrow {
	margin: 0 0 0.5em;
	font-size: 14px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #fff;
}

.jse-word {
	font-family: "Poppins", "Montserrat", "Helvetica Neue", Arial, sans-serif;
	font-size: clamp(120px, 24vw, 420px);
	font-weight: 800;
	line-height: 0.9;
	letter-spacing: -0.02em;
	color: #fff;
	white-space: nowrap;
	user-select: none;
}

/* Вырезанный объект над словом: самолёт, лодка */
.jse-cutout {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 3;
	max-width: none;
	height: auto;
	pointer-events: none;
	will-change: transform;
}
.jse-cutout[data-motion="ltr"],
.jse-cutout[data-motion="rtl"] {
	left: 0 !important;
}

.jse-content {
	position: relative;
	z-index: 4;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 18px;
	width: 100%;
	max-width: 640px;
	padding: 90px 6vw;
	padding-bottom: max(90px, calc(env(safe-area-inset-bottom, 0px) + 60px));
	box-sizing: border-box;
	text-align: left;
}

.jse-title {
	margin: 0;
	font-family: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
	font-size: clamp(38px, 5.2vw, 78px);
	font-weight: 400;
	line-height: 1.05;
}
.jse-title-1,
.jse-title-2 {
	display: block;
}
.jse-title-1 { color: #fff; }
.jse-title-2 {
	background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.35) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}

.jse-subtitle {
	position: relative;
	margin: 0;
	padding-top: 22px;
	font-size: 13px;
	line-height: 1.9;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: #fff;
}
.jse-subtitle::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 36px;
	height: 2px;
	background: #e5322d;
}

.jse-description {
	margin: 0;
	max-width: 460px;
	font-size: 15px;
	line-height: 1.6;
	color: #fff;
}

.jse-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
	padding: 11px 18px;
	border-radius: 3px;
	background-color: #fff;
	color: #111;
	font-size: 14px;
	text-decoration: none;
	transition: filter 0.2s ease; /* не opacity: opacity анимирует GSAP */
}
.jse-button:hover,
.jse-button:focus-visible { filter: brightness(0.9); }

/* Стеклянная панель справа */
.jse-panel {
	position: absolute;
	top: 0;
	bottom: 0;
	right: clamp(90px, 9vw, 150px);
	z-index: 4;
	width: 340px;
	height: fit-content;
	margin: auto 0;
	padding: 28px;
	box-sizing: border-box;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 4px;
	background-color: rgba(22, 34, 28, 0.45);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
	color: #fff;
	font-size: 13px;
	line-height: 1.6;
}
.jse-panel h3 {
	margin: 0 0 10px;
	font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
	font-size: 30px;
	font-weight: 400;
	color: #fff;
}
.jse-panel p { margin: 0 0 14px; color: inherit; }
.jse-panel p:last-child { margin-bottom: 0; }

/* Боковая навигация 01, 02, 03 */
.jse-nav {
	position: fixed;
	top: 50%;
	right: 26px;
	z-index: 50;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	transform: translateY(-50%);
	color: #fff;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}
.jse-wrapper.is-in-view .jse-nav {
	opacity: 1;
	pointer-events: auto;
}
.jse-nav button {
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
}
.jse-nav-item {
	position: relative;
	font-size: 13px;
	letter-spacing: 0.08em;
	font-variant-numeric: tabular-nums;
	transition: color 0.25s ease;
}
.jse-nav-item::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -7px;
	width: 14px;
	height: 2px;
	background-color: #e5322d;
	transform: translateX(-50%) scaleX(0);
	transition: transform 0.25s ease;
}
.jse-nav-item.is-active { color: #e5322d; }
.jse-nav-item.is-active::after { transform: translateX(-50%) scaleX(1); }
.jse-nav-arrow { display: flex; opacity: 0.8; }
.jse-nav button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

@media (max-width: 1024px) {
	.jse-panel { display: none; }
}

@media (max-width: 767px) {
	.jse-nav { right: 12px; gap: 16px; }
	.jse-content { padding: 90px 24px; }
	.jse-description { font-size: 14px; }
}
