@font-face {
    font-family: 'HeliosCondC';
    src: url('../fonts/helioscondc_bold.otf');
    src: local('HeliosCondC'),
        url('../fonts/helioscondc_bold.woff2') format('woff2'),
        url('../fonts/helioscondc_bold.woff') format('woff'),
        url('../fonts/helioscondc_bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
	ascent-override: 80%;
	descent-override: 20%;
	line-gap-override: 0%;
}
@font-face {
    font-family: 'HeliosCondC';
    src: url('../fonts/helioscondc.otf');
    src: local('HeliosCondC'),
        url('../fonts/helioscondc.woff2') format('woff2'),
        url('../fonts/helioscondc.woff') format('woff'),
        url('../fonts/helioscondc.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
/* reset ---------------------------------------------- */
body, html {
	overflow: hidden;
}
a {
	text-decoration: none;
	color: inherit;
	transition: all 0.2s;
}
button {
    border: 0;
   	padding: 0;
    cursor: pointer;
    background: none;
    color: inherit;
	transition: all 0.2s;
}
.floatl {
	float: left;
}
.floatr {
	float: right;
}
.clr {
	clear: both;
}
b, strong {
	font-weight: 700;
}
i, em {
	font-style: italic;
}
input, textarea, button {
	font-family: Inter, Helvetica, Tahoma, sans-serif;
}
.tc {
	text-align: center;
}
.none {
	display: none;
}
textarea {
	resize: none;
}
input[type=text]:focus, .input:focus {
	outline: none;
}
input[type="text"] {
  &::placeholder {
    color: var(--GreyMetallic);
    opacity: 1;
    transition: opacity .2s ease;
  }

  &:focus::placeholder {
    opacity: 0;
  }
}
input[type=submit], input[type=button], input[type=text], button, textarea { -webkit-appearance: none !important; }
button, 
button:active, 
button:focus {
    outline: none;
}
::-moz-focus-outer, ::-moz-focus-inner {
    border: 0;
    padding: 0;
}
::selection {
	background: #032161;
	color: #fff;
}
::-moz-selection {
	background: #032161;
	color: #fff;
}
.cell {
	display: table-cell;
	text-align: center;
	vertical-align: middle;
}
.center {
	text-align: center;
}
a.und {
	text-decoration: underline;
	&:hover {
		text-decoration: none;
	}
}
.smooth {
	-webkit-transition:all 0.2s;
	-moz-transition:all 0.2s;
	transition:all 0.2s;
}
.grayscale {
	-webkit-filter: grayscale(100%);
	-moz-filter: grayscale(100%);
	-ms-filter: grayscale(100%);
	-o-filter: grayscale(100%);
	filter: grayscale(100%);
}
a[href^="tel:"]:hover {
	text-decoration: none;
}
:root {
	--Black: #282828;
	--Blue: #0079C2;
	--Orange: #FF9900;
	--BlueClean: #008FFF;
	--GreyMetallic: #A5A8A6;
	--Grey20:#EDEEED;
	--Green: #99CC01;
	--LightBlue: #CDF0FA;
	--Helios: HeliosCondC, sans-serif;
	
	--HeaderHeight: 80px;
	--TopIndent: 42px;
	--Indent: 90px;
}
/* common ---------------------------------------------- */
.helios {
	font: 700 100px/1 var(--Helios);
	text-transform: uppercase;
}
.cover {
	background-size: cover;
	img, video {
		display: block;
		object-fit: cover;
		width: 100%;
		height: 100%;
	}
}
.more {
	font: 700 20px/1 var(--Helios);
	span {
		cursor: pointer;
		text-decoration: underline;
		&:hover {
			text-decoration: none;
		}
	}
}
@media (min-width: 1000px) {
  .mobile-only {
	  display: none !important;
  }
}
/* flex */
.flex {
	display: flex;
	align-items: center;
	&.center {
		justify-content: center;
	}
	&.space-between {
		justify-content: space-between;
	}
}
.flex-column {
	display: flex;
	flex-direction: column;
}
.flex-grow {
	flex-grow: 1;
}
.columns {
	display: flex;
	&.same {
		gap: 0;
		> * {
			flex: 1;
		}
	}
	> * {
		min-width: 0;
	}
}
/* svg */
svg.icon {
	width: 24px;
	height: 24px;

	&.lg {
		width: 32px;
		height: 32px;
	}

	&.xl {
		width: 40px;
		height: 40px;
	}

	&.sm {
		width: 16px;
		height: 16px;
	}
}
svg.star {
	stroke: #CDF0FA;
}
svg {
	transition: all 0.2s;
	flex-shrink: 0;
}
/* colors */
.white {
	color: #fff;
}
.grey {
	color: var(--GreyMetallic);
}
.button.grey-bg {
	background: var(--GreyMetallic);
}
/* Animations ---------------------------------------------- */

@keyframes star-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(.75);
  }
  75% {
  	transform: scale(.9);
  }
}
@keyframes star-twinkle {
  0%, 100% { opacity: .2; transform: scale(.8); }
  50% { opacity: 1; transform: scale(1.2); }
}
@keyframes more-icon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(25%); }
}

@keyframes f1 { 0%,100%{transform:translateY(0)}    50%{transform:translateY(-7px)} }
@keyframes f2 { 0%,100%{transform:translateY(-3px)} 50%{transform:translateY(6px)}  }
@keyframes f3 { 0%,100%{transform:translateY(-2px)} 50%{transform:translateY(7px)}  }
@keyframes f4 { 0%,100%{transform:translateY(2px)}  50%{transform:translateY(-7px)} }
@keyframes f5 { 0%,100%{transform:translateY(-6px)} 50%{transform:translateY(3px)}  }
@keyframes f6 { 0%,100%{transform:translateY(0px)}  50%{transform:translateY(-8px)} }
@keyframes f7 { 0%,100%{transform:translateY(-3px)} 50%{transform:translateY(6px)}  }
@keyframes f8 { 0%,100%{transform:translateY(3px)}  50%{transform:translateY(-6px)} }

/* Buttons ---------------------------------------------- */
.button {
	display: inline-flex;
	align-items: center;
	height: 70px;
	padding: 0 24px;
	color: #fff;
	font-size: 20px;
	border-radius: 12px;
	line-height: 1;
	background: var(--Black);
	transition: transform 0.3s ease;

	&.md {
		height: 44px;
		padding: 0 24px;
		font-size: 18px;
		border-radius: 8px;
	}
	&.sm {
		height: 32px;
		padding: 0 16px;
		font-size: 16px;
		border-radius: 8px;
	}
	&.orange {
		background: var(--Orange);
	}
	&.blue {
		background: var(--BlueClean);
	}

	&[disabled] {
		cursor: default;
	}

	&:not([disabled]):hover {
		text-decoration: none;
		transform: scale(1.03) rotate(0.0deg);
	}
	&[disabled] {
		background: var(--LightGrey);
		color: var(--Grey20);
	}

	&.has-icon {
		gap: 12px;
	}
	&.right svg {
		transform: scale(-1, 1);
	}
}
button.button, input.button {
	border: 0;
	cursor: pointer;
}
.buttons {
	display: flex;
	justify-content: center;
	gap: 24px;
}
/* Header ---------------------------------------------- */
.header {
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: var(--HeaderHeight);
	background: #fff;
	transition: transform 0.3s ease;
	z-index: 1000;
	border-bottom: 1px solid var(--Grey20);

	.wrapper {
		display: flex;
		justify-content: center;
		height: 100%;
	}
	.logo {
		cursor: pointer;
		img {
			display: block;
			margin-top: 9px;
			width: 177px;
			aspect-ratio: 177 / 52;
		}
	}
	.button {
		position: absolute;
		right: var(--TopIndent);
		top: calc(50% - 24px);
		font: 700 16px/1 var(--Helios);
		padding: 0 16px;
		display: inline-flex;
		align-items: center;
		height: 48px;
		background: var(--Orange);
		border-radius: 8px;
		color: #fff;
		text-transform: uppercase;
	}
	.burger {
		position: absolute;
		left: var(--TopIndent);
		top: 50%;
		transform: translateY(-50%);
		color: var(--Blue);
		transition: opacity .3s ease;

		svg {
			display: block;
			width: 48px;
			height: 48px;
		}
		svg.none {
			display: none;
		}
		@media (hover: hover) and (pointer: fine) {
			&:hover {
				svg {
					color: #fff;
					fill: var(--Blue);
				}
			}
		}
	}
	.menu-buttons {
		position: absolute;
		left: var(--TopIndent);
		top: 16px;
		display: flex;
		gap: 16px;
		opacity: 0;
		pointer-events: none;
		transition: opacity .3s ease;

		button {
			cursor: pointer;
			background: var(--Blue);
			border-radius: 8px;
			height: 48px;
			font-size: 14px;
			line-height: 1.2;
			display: inline-flex;
			justify-content: center;
			align-items: center;
			padding: 0 16px;
			transition: all .2s;

			&:hover {
				background: var(--BlueClean);
			}
		}
	}

	&.hidden {
		transform: translateY(-100%);
	}
}
body.show-menu {
	@media (min-width: 1000px) {
		.burger {
			opacity: 0;
			pointer-events: none;
		}
	}
	.menu-buttons {
		opacity: 1;
		pointer-events: auto;
	}
}
.footer {
	flex-shrink: 0;
	width: 100%;
	padding: 24px 0;
	font-size: 12px;

	ul {
		display: flex;
		justify-content: center;
		gap: 26px;
	}

	a {
		text-decoration: underline;

		&:hover {
			text-decoration: none;
		}
	}
}
/* Content ---------------------------------------------- */
.sky {
	background: url("../images/sky_2x.webp");
	background-size: cover;
	background-position: top center;
}
.fixed {
	position: fixed;
	z-index: -1;
	width: 100%;
	height: 100%;
	pointer-events: none;
	left: 0;
	top: 0;
}
.content {
	position: relative;
	height: 100vh;
	will-change: transform;
	transition: transform .6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	
	section {
		position: relative;
		width: 100%;
		height: 100vh;
		overflow: hidden;
		&:not(:first-child) {
			padding-top: var(--HeaderHeight);
		}
	}
	&.scrolling {
		.section-leaders .gift {
			transform: translateY(100%);
			opacity: 0;
		}
	}
	.head {
		position: relative;
		text-align: center;
		font-size: 100px;
		line-height: 1;
		padding-top: 70px;

		&.after::after {
			content: '';
			position: absolute;
			left: 50%;
			top: auto;
			transform: translateX(-50%);
			background-size: cover;
			pointer-events: none;
			z-index: 10;
			width: 160px;
			height: 160px;
		}
		&.icon-star::after {
			background-image: url("../images/star_2x.webp");
		}
		&.icon-heart::after {
			background-image: url("../images/heart_2x.webp");
		}
	}
	.caption {
		position: relative;
	}

	.disclaimer {
		transition: opacity .3s ease;
		pointer-events: none;

		&.hidden {
			opacity: 0;
		}
	}
	.steps {
		display: flex;
		color: var(--Black);
		font-size: 16px;
		line-height: 1.2;
		gap: 64px;

		.item {
			display: flex;
			align-items: center;
			position: relative;
			height: 104px;
			gap: 6px;

			&.step-1 {
				.number {
					left: 5px;
					background-image: url("../images/1-single.svg");
				}
			}
			&.step-2 {
				.number {
					background-image: url("../images/2-single.svg");
				}
			}
			&.step-3 {
				.number {
					background-image: url("../images/3-single.svg");
				}
			}
		}
		.number {
			position: absolute;
			left: -15px;
			top: -9px;
			pointer-events: none;
			z-index: 1;
			height: 90px;
			width: 100%;
			background-size: contain;
			background-repeat: no-repeat;
		}
		.text {
			text-align: left;
		}
		.border {
			position: relative;
			width: 104px;
			height: 104px;
			padding: 10px;
			flex-shrink: 0;

			img {
				position: absolute;
				width: 100%;
				inset: 0;
				pointer-events: none;
				z-index: 2;
			}

			&::before {
				content: '';
				display: block;
				border-radius: 16px;
				background: var(--BlueClean);
				width: 100%;
				height: 100%;
			}
		}
	}

	.profile {
		width: 90px;
		height: 90px;
		position: relative;

		.image {
			position: relative;
			height: 100%;
			border-radius: 32px;
			overflow: hidden;
			transition: transform 0.1s ease-out;

			img {
				object-position: top;
			}
		}
		svg {
			position: absolute;
			z-index: 2;
			transition: transform 0.1s ease-out;
		}
	}
}

.section-hero {
	display: flex;
	flex-direction: column;

	.gallery-wrapper {
		flex-grow: 1;
		display: flex;
		flex-direction: column;
		align-items: center;
		position: relative;
		overflow: hidden;
		background: url("../images/hero/keyvisual_2x.webp");
		background-size: cover;

		&::before {
			content: '';
			position: absolute;
			left: 0;
			bottom: 0;
			z-index: 10;
			width: 100%;
			height: 60px;
			z-index: 2;
			background: linear-gradient(to bottom, rgba(3, 33, 97, 0) 0, #001E5F 100%);
		}

		.caption {
			svg {
				height: clamp(120px, 9.8vw, 190px);
				max-height: calc(100vh - var(--gallery-height) - 200px);
				width: auto;
				aspect-ratio: 391 / 190;
			}
		}
	}
    .gallery {
    	position: relative;
    	flex-shrink: 0;
		perspective: 1200px;
		margin: 0 auto;

		.card {
			position: absolute;
			left: 50%;
			top: 100%;
			width: 504px;
			height: 570px;
			border-radius: 6px;
			overflow: hidden;
			pointer-events: none;
			transform-style: preserve-3d;
			backface-visibility: hidden;
			will-change: transform, opacity;
			box-shadow: 2px 8px 32px 0px rgba(3, 33, 97, 1);
			transform-origin: bottom center;

			img {
				width: 100%;
				height: auto;
				pointer-events: none;
			}
		}
    }
    .gallery__bg {
		position: absolute;
		left: 0;
		bottom: 0;
		width: 100%;
		height: 100%;
		z-index: 3;
		pointer-events: none;
		.gallery {
			height: 100%;
			background: url("../images/hero/object_0509.webp") no-repeat center bottom;
			background-size: contain;
		}
    }
    .gallery__viewport {
		position: relative;
		width: 100%;
		height: var(--gallery-height, 520px);
		transform: translateY(var(--gallery-offset, 50px));
		cursor: grab;
		touch-action: pan-y;
		border-radius: 8px;
		user-select: none;

		&.is-dragging {
			cursor: grabbing;
		}
    }
    .gallery__track {
		position: relative;
		width: 100%;
		height: 100%;
		transform-style: preserve-3d;
    }

	.rules {
		position: relative;
		background: #fff;
		width: 100%;
		height: 200px;

		.button { 
			background: var(--Orange);
			padding: 0 40px;
			right: 66px;
			position: absolute;
			top: auto;
		}
		.logo {
			position: absolute;
			top: 62px;
			left: 66px;
			width: 195px;
			height: 58px;
		}
	}
}

.section-style {
	.head::after {
		margin-top: 56px;
	}
	.top-spacer {
		width: 1px;
		height: 420px;
		position: absolute;
		left: 0;
		top: 0;
		visibility: hidden;
		pointer-events: none;
	}
	.inner-scroll {
		position: absolute;
		left: 0;
		bottom: 0;
		display: flex;
		flex-direction: column;
		align-items: center;
		width: 100%;
		
		--animation-delay: .1s;
		--animation-speed: .6s;

		.styles {
			height: 424px;
			overflow: hidden;
			will-change: transform;
			transition-delay: var(--animation-delay);
			transition: transform var(--animation-speed) ease-out;
			transform-origin: bottom;
			display: flex;
			justify-content: center;
			align-items: flex-end;
			width: 100%;

			img {
				width: 100%;
				cursor: pointer;
				overflow: hidden;
				transition: transform .1s;
				will-change: transform;
				border-radius: 12px;

				&:hover {
					transform: scale(1.02) rotate(0.0deg)
				}
			}
			.image-center {
				position: relative;
				z-index: 2;
				width: auto;
				height: 98%;
				aspect-ratio: 428 / 417;
				filter: drop-shadow(3px 7px 30px rgba(3, 33, 97, 0.8));
			}
			.image-rotate {
			  width: auto;
			  height: 79%;
			  aspect-ratio: 366 / 335;
			  &.left {
			  	transform: translate(18.87%, 2.36%) rotate(-15deg);
			  }
			  &.right {
			  	transform: translate(-18.87%, 2.36%) rotate(15deg);
			  }
			}
			.question {
				transform: translate(-21.23%, 2.36%) rotate(15deg);
				width: auto;
				height: 82.55%; 
				aspect-ratio: 367 / 350;
			}
		}
		.block {
			position: relative;
			width: 100%;
			height: var(--block-height, 224px);
			overflow: hidden;
			will-change: height;
			transition-delay: var(--animation-delay);
			transition: height var(--animation-speed) ease-out;
		}

		&.animated {
			.styles {
				transform: scale(.42);
			}
			.block {
				height: max(45vh, 448px);
			}
		}
	}

	.badge {
		position: relative;
		z-index: 3;
		text-align: center;
		padding-top: 68px;

		img {
			width: 438px;
			aspect-ratio: 438 / 340;
			pointer-events: none;
			user-select: none;
			transform: translateX(-11.5%);
		}
	}
	.line {
		width: 100%;
		max-width: 1594px;
		height: 1px;
		background: linear-gradient(90deg, rgba(205, 240, 250, 0) 0%, #CDF0FA 15%, #CDF0FA 85%, rgba(205, 240, 250, 0) 100%);	
	}
	.text {
		font-size: 24px;
		line-height: 1.2;
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
		text-align: center;
		padding-top: 48px;
	}
}

.section-together {
	background: linear-gradient(to bottom, #032161 0, #1E88E5 100%);
	color: #fff;

	@media (min-width: 1000px) {
	  .head::after {
		  display: none;
	  }
	}

	.pattern {
		position: absolute;
		inset: 0;
		z-index: 0;
		pointer-events: none;
		display: flex;
		align-items: center;

		picture {
			width: 100%;
		}
		img {
			transform: translateY(50px);
			display: block;
			width: 100%;
			height: auto;
		}
	}
	.wrapper {
		margin: 0 90px;
		height: 100%;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		gap: 48px;

		> div {
			flex-shrink: 0;
		}
	}

	.ranking {
		display: flex;
		gap: 48px;

		.item {
			display: flex;
			position: relative;
			align-items: center;
			height: 34px;
			flex: 1;
			border: 1px solid var(--item-color);
			border-radius: 4px 0 0 4px;
			border-right: 0;
			overflow: hidden;
			transition: width 20s ease-out;

			.title {
				flex-shrink: 0;
				font-size: 17px;
				padding-left: 10px;
				transform: translateY(1.5px);
			}
			.year {
				flex-grow: 1;
				font-size: 12px;
				font-weight: 700;
				line-height: 1.4;
				white-space: nowrap;
				padding-left: 16px;
				opacity: .8;
			}
			.per {
				font: 700 28px/1 var(--Helios);
				transform: translateY(2px);
			}
			> div {
				position: relative;
			}

			&::before {
				content: '';
				position: absolute;
				left: 0;
				top: 0;
				width: 100%;
				height: 100%;
				z-index: 0;
				pointer-events: none;
				background: var(--item-color);
				transform: scaleX(0);
				transform-origin: left center;
				transition: transform 1s ease-out;
			}
			&.animated::before {
				transform: scaleX(var(--item-per));
			}

			&:nth-child(1) {
				--item-color: var(--GreyMetallic);
			}
			&:nth-child(2) {
				--item-color: var(--Blue);
			}
			&:nth-child(3) {
				--item-color: rgb(0, 143, 255);
			}
			&:nth-child(4) {
				--item-color: rgb(0, 171, 139);
			}
			&:nth-child(5) {
				--item-color: var(--Green);
			}
		}
	}
	.columns {
		align-items: flex-end;
		flex-grow: 1;
		gap: 4px;
		margin-bottom: 40px;
	}
	.info-item {
		font-size: 21px;
		position: relative;
		z-index: 2;
		.title {
			display: flex;
			align-items: center;
			justify-content: space-between;
			height: 72px;
			padding: 0 24px;
			.icons {
				display: flex;
				gap: 8px;
			}
			p {
				padding-top: 2px;
			}
		}
		.line {
			height: 7px;
		}
		.number {
			padding: 22px 0 0 24px;

			span {
				font-size: 100px;
				letter-spacing: -.02em;
			}
		}
		&.join {
			background: linear-gradient(360deg, #008FFF 0%, #003366 100%);
			height: 500px;

			.line {
				background: linear-gradient(90deg, #99CC00 0%, #0079C2 19.71%, #008FFF 49.52%, #00AB8B 75%, #A5A8A6 95.19%);
			}
		}
		&.collect {
			background: linear-gradient(360deg, #008FFF 0%, #003366 100%);
			height: 310px;
			.line {
				background: linear-gradient(90deg, #1E88E5 0%, #FF9900 42.31%);
			}
		}
	}
}

.section-stories {
	.layer {
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
		height: 100%;
		display: flex;
		flex-direction: column;
		justify-content: center;

		&.story-team {
			background: linear-gradient(to bottom, #032161 0, #1E88E5 100%);
			color: #fff;

			.circles .item {
				background: rgba(0, 121, 194, .3);
			}
			.container {
				.row:nth-child(1) {
					--spacer-width: 580px;
				}
				.row:nth-child(2) {
					--spacer-width: 502px;
				}
				.row:nth-child(3) {
					--spacer-width: 583px;
				}
			}
		}
		&.story-peers {
			background: linear-gradient(to bottom, #EEE, #EEE var(--HeaderHeight), #fff calc(var(--HeaderHeight) + 80px), #fff 100%);
			color: rgba(0, 171, 139, 1);

			.circles .item {
				background: rgb(220, 251, 245);
			}
			.container {
				.row:nth-child(1) {
					--spacer-width: 580px;
				}
				.row:nth-child(2) {
					--spacer-width: 722px;
				}
				.row:nth-child(3) {
					--spacer-width: 587px;
				}
			}
		}
		&.layer-base {
			z-index: 1;
		}
		&.layer-moving {
			z-index: 2;
			clip-path: inset(0 calc(100% - var(--visible-width, 100px)) 0 0);
		}
	}
	.container {
		position: relative;
		text-align: center;
		height: 334px;

		.text {
			position: absolute;
			top: 100%;
			left: 0;
			width: 100%;
			padding-top: 80px;
			font-size: 20px;
			line-height: 1.4;
			text-align: center;
		}
		.more {
			padding-top: 24px;
		}
	}
	.circles {
		gap: 32px;
		.row {
			width: 100%;
		}
		.items {
			gap: 20px;
			height: 90px;
			min-width: 0;
			flex: 1 1 0;

			&.backward {
				flex-direction: row-reverse;
			}
		}
		.item {
			width: 90px;
			height: 90px;
			flex-shrink: 0;
			border-radius: 32px;
			overflow: hidden;

			&.active {
				cursor: pointer;
				user-select: none;
				position: relative;
				overflow: visible;
				background: none !important;
				transition: all .3s ease-out;

				.icon {
				    transition: transform .3s ease-out;
				    transform: scale(1);
				    transform-origin: center;
				    width: 100%;
				    height: 100%;
				    overflow: hidden;
				    border-radius: inherit;
				    position: relative;
					&::before {
						content: '';
						opacity: 0;
						position: absolute;
						left: 0;
						bottom: 0;
						pointer-events: none;
						transition: opacity .3s ease-out;
						background: linear-gradient(to bottom, rgba(0,0,0,0) 34%, #1E88E5 100%);
						width: 100%;
						height: 30px;
					}
				}
				.name {
					position: absolute;
					left: -50%;
					bottom: -50%;
					font-size: 18px;
					line-height: 1.2;
					letter-spacing: -.03em;
					opacity: 0;
					transition: opacity .1s ease-in;
					transition-delay: 0s;
					transform: translate(16px, -10px);
					text-align: left;
				}
				@media (hover: hover) and (pointer: fine) {
					&:hover {
						z-index: 2;
						.icon {
							transform: scale(2);
							box-shadow: 10px 8px 10px 0px rgba(3, 43, 108, .25);
							border-radius: 12px;
							&::before {
								opacity: 1;
							}
						}
						.name {
							opacity: 1;
							transition: opacity .2s ease-out;
							transition-delay: .3s;
						}
					}
				}
			}
		}
		.spacer {
			position: relative;
			flex: 0 0 var(--spacer-width, 200px);
			width: var(--spacer-width, 200px);
			height: 90px;

			.title {
				position: absolute;
				left: 0;
				width: 100%;
				text-align: center;
				font-size: 123px;
				line-height: .85;
				user-select: none;
				pointer-events: none;
			}
		}
	}
	.handler {
		position: absolute;
		z-index: 10;
		bottom: 160px;
		left: var(--handle-left, 100px);
		transform: translateX(-50%);
		cursor: grab;
		display: flex;
		align-items: center;
		height: 45px;
		border: 2px solid var(--BlueClean);
		border-radius: 4px;
		display: flex;
		padding: 2px 4px;
		background: #fff;
		touch-action: none;               /* запрещает скролл и свайпы */
		user-select: none;                /* предотвращает выделение текста */
		-webkit-user-select: none;        /* для Safari */
		-webkit-touch-callout: none;      /* убирает вызов контекстного меню на iOS */


		svg {
			width: 24px;
			height: 24px;
		}
		.line {
			width: 1px;
			height: 100%;
			background: var(--BlueClean);
			margin: 0 5px;
		}

		&:active {
			cursor: grabbing;
		}
	}
	.disclaimer {
		display: block;
		position: absolute;
		z-index: 11;
		left: -999px;
		bottom: 96px;
		margin-left: 32px;
		width: 165px;
		transition: opacity .3s ease;
		pointer-events: none;

		&.hidden {
			opacity: 0;
		}

		&.helper-right {
			display: none;
			left: auto;
			margin-right: 32px;
		}
	}
}
.story-popup {
	position: absolute;
	left: 0;
	top: var(--HeaderHeight);
	width: 100%;
	height: calc(100% - var(--HeaderHeight));
	background: #fff;
	z-index: 100;
	opacity: 0;
	pointer-events: none;
	transform: translateX(80px);
	transition: opacity 0.35s ease, transform 0.35s ease;

	&.open {
		opacity: 1;
		pointer-events: auto;
		transform: translateX(0);
	}

	.info {
		position: absolute;
		left: calc(var(--Indent) + (100% - 2 * var(--Indent)) / 4);
		bottom: 40px;
		display: flex;
		flex-direction: column;
		gap: 24px;
		font-size: 13px;
		line-height: 1.3;
		width: 25%;
		padding: 0 48px;
	}

	.scroll-data {
		color: #000;
		overflow-y: scroll;
		scrollbar-width: thin;
		margin-right: -20px;
		padding-left: 20px;
		height: 100%;
		display: flex;
		flex-direction: column;
		justify-content: space-between;

		.anons {
			font: 400 56px/1 var(--Helios);
			letter-spacing: -.02em;
			color: var(--Blue);
			padding: 48px 0 80px 48px;
			width: calc(50% - var(--Indent));
			margin-left: calc(var(--Indent) + (100% - 2 * var(--Indent)) / 4);
			flex-shrink: 0;
		}
		.scroll-text {
			flex-grow: 1;
			font-size: 18px;
			line-height: 1.4;
			padding-left: calc(50% + var(--Indent));
			padding-right: var(--Indent);

			.item {
				margin-bottom: 38px;

				p:not(:first-child) {
					margin-top: 10px;
				}
			}
		}
		.next {
			flex-shrink: 0;
			height: 172px;
			width: calc(50% - var(--Indent));
			background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, #1E88E5 85%);
			padding-bottom: 24px;
			margin-left: calc(50% + var(--Indent));
			gap: 16px;
			align-items: center;
			justify-content: flex-end;
			align-self: flex-end;
			z-index: 2;

			.next-block {
				display: flex;
				gap: 12px;

				.next-image {
					width: 60px;
					height: 60px;
					overflow: hidden;
					border-radius: 20px;
				}
				.next-title {
					font-size: 20px;
					letter-spacing: -.03em;
					text-align: left;
				}
			}
		}
	}
	.close {
		position: absolute;
		right: var(--TopIndent);
		top: var(--TopIndent);
		z-index: 2;
		cursor: pointer;
		width: 32px;
		height: 32px;
		border: 1px solid rgba(0, 0, 0, 0.25);
		border-radius: 6px;
		z-index: 2;
		transition: all .2s;
		color: var(--Black);

		&:hover {
			background: var(--BlueClean);
			border-color: var(--BlueClean);
			color: #fff;
		}
	}
	.block-image {
		position: absolute;
		top: 0;
		left: 0;
		width: calc(var(--Indent) + (100% - 2 * var(--Indent)) / 4);
		height: 100%;
		pointer-events: none;

		.badge {
			width: 200px;
			img {
				width: 100%;
				height: auto;
			}
		}
		.subtitle {
			font: 400 15px/1 var(--Helios);
			text-transform: uppercase;
			left: var(--TopIndent);
			top: 48px;
			position: absolute;
		}
		.image {
			height: 100%;
			img {
				object-position: top;
			}
			&:before {
				content: '';
				position: absolute;
				left: 0;
				bottom: 0;
				width: 100%;
				height: 250px;
				background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, #1E88E5 92%);
			}

			&::after {
				content: '';
				position: absolute;
				right: 0;
				top: 50%;
				transform: translateX(50%);
				pointer-events: none;
				width: 200px;
				height: 232px;
				background: url("../images/stories/icons.png");
				background-size: cover;
			}
		}
		.block {
			position: absolute;
			left: var(--TopIndent);
			bottom: 40px;
			z-index: 3;
			color: #fff;

			.title {
				margin-top: 16px;
				font-size: 48px;
				letter-spacing: -.03em;
			}
		}
	}
}

body:has(.section-history.scrolling) .header {
	&::after {
		content: '';
		position: absolute;
		left: 0;
		top: 100%;
		width: 100%;
		height: 80px;
		background: linear-gradient(to bottom, #EEEEEE, rgba(255,255,255,0) 100%);
		z-index: 1;
	}
}
.section-history {
	background: #EEEEEE;
	&:not(.scrolling) .items .item:not(.active) {
		display: none;
	}
	--boxOffsetMin: 84px;
	--boxOffset: 830px; /* startbox + caption + bottom offset */
	&.scrolling {
		.start {
			opacity: 0;
			pointer-events: none;
		}
		.scroll-data {
			.items {
				height: auto;
				padding-bottom: 0;

				&:before {
					background: linear-gradient(to bottom, #fff 0%, #A5A8A6 15%, #A5A8A6 95%, #0070BA 100%);
					width: 1px;
					height: calc(100% - 168px);
				}
			}
			.marker {
				display: block;
				position: absolute;
				left: 0;
				bottom: 0;
				width: 100%;
				height: 10px;
				pointer-events: none;

				&.end-marker {
					bottom: 0;
				}
				&.start-marker {
					top: 0;
				}
			}

			&::before {
				display: none;
			}
		}
	}

	.scroll-data {
		display: flex;
		flex-direction: column;
		position: relative;
		margin-right: -20px;
		padding-right: 20px;
		overflow-y: scroll;
		scrollbar-width: thin;
		height: 100%;
		background: #fff;

		.caption {
			z-index: 2;
			flex-shrink: 0;
			.title {
				text-align: center;
				padding-top: 10px;
				font-size: 20px;
				color: var(--GreyMetallic);
			} 
		}

		&::before {
			content: '';
			position: absolute;
			width: 100%;
			height: 80px;
			background: linear-gradient(to bottom, #EEEEEE, #fff 100%);
			z-index: 1;
		}
		.end-marker {
			display: none;
		}
		.items {
			position: relative;
			display: flex;
			flex-direction: column;
			gap: 200px;
			flex-grow: 1;
			padding-top: max(var(--boxOffsetMin), calc(100vh - var(--boxOffset) - var(--HeaderHeight)));

			&:before {
				content: '';
				position: absolute;
				left: 50%;
				top: 50px;
				background: linear-gradient(to bottom, #fff 0%, #A5A8A6 15%, #A5A8A6 88%, #fff 100%);
				width: 1px;
				height: calc(100% - 170px);
				z-index: 2;
				pointer-events: none;
			}
		}
		.image {
			position: absolute;
			z-index: 3;
			pointer-events: none;
		}
		.item {
			position: relative;
			display: flex;
			width: 100%;

			&.column-center {
				justify-content: center;
			}
		}
		
		.box {
			display: flex;
			position: relative;
			background: #fff;
			z-index: 4;
			border: 1px solid var(--GreyMetallic);
			padding: 32px 40px;
			display: flex;
			gap: 56px;
			color: var(--Black);
			max-width: 870px;

			.year {
				font-size: 80px;
				letter-spacing: -.02em;
				color: var(--Blue);
				flex-shrink: 0;
			}
			.title {
				padding-bottom: 16px;
				color: var(--Black);
				font-size: 40px;
				line-height: 1.16;
			}
			.text {
				font-size: 18px;
				line-height: 1.4;

				p:not(:first-child) {
					margin-top: 16px;
				}
			}
			&.extra {
				display: block;
			}
		}
		#year-2026 {
			.box {
				margin-left: calc(50% - 100px);
				max-width: 856px;
			}
			.image {
				right: calc(50% + 50px);
				top: -60px;
				width: 787px;
				aspect-ratio: 787 / 570;
			}
		}
		#year-2025 {
			.image {
				right: calc(50% - 68px);
				top: calc(100% - 80px);
				width: 965px;
				aspect-ratio: 965 / 710;
			}
		}
		#year-2024 {
			.box {
				margin-left: calc(50% - 190px);
				max-width: 1062px;
			}
		}
		#year-2023 {
			.box {
				margin-left: auto;
				margin-right: 50%;
				transform: translateX(220px);
				max-width: 920px;
			}
			.image {
				right: auto;
				left: calc(50% + 40px);
				top: -86px;
				width: 748px;
				aspect-ratio: 748 / 689;
			}
		}
		#year-2021 {
			flex-direction: column;
			align-items: center;
			.box {
				max-width: 1305px;
			}
			.box-extra {
				width: 474px;
				max-width: none;
				transform: translateX(50%);
				margin: -12px 0 50px -80px;
				position: relative;
			}
			.image {
				width: 987px;
				aspect-ratio: 987 / 620;
				top: auto;
				bottom: -50px;
				left: calc(50% - 610px);
			}
		}
		#year-2020 {
			.box {
				margin-left: calc(50% - 260px);
			}
		}
		#year-2014 {
			.box {
				max-width: 982px;
				margin-left: calc(50% - 110px);
			}
			.image {
				width: 931px;
				aspect-ratio: 931 / 539;
				top: -225px;
				right: calc(50% - 136px);
			}			
		}
		#year-2004 {
			.box {
				transform: translateX(-217px);
				max-width: 1047px;
			}
			.image {
				width: 794px;
				aspect-ratio: 794 / 567;
				top: 20px;
				right: auto;
				left: calc(50% + 76px);
			}
		}
		#year-1997 {
			.box {
				margin-left: calc(50% - 246px);
				max-width: 910px;
			}
		}
		#year-1996 {
			padding-bottom: 600px;
			.box {
				max-width: 1052px;
			}
			.image {
				position: absolute;
				left: 50%;
				bottom: 115px;
				width: 1282px;
				height: auto;
				transform: translateX(-50%);
				z-index: 0;
			}
			.end-logo {
				position: absolute;
				left: 50%;
				bottom: 100px;
				transform: translateX(-50%);
				width: 80px;
				height: 80px;
				margin: 0 auto;
				background: url("../images/history/gazprom_logo.svg");
				background-size: cover;
				z-index: 4;
			}
		}
	}
	.start {
		position: absolute;
		left: 0;
		bottom: 32px;
		width: calc(100% - 4px);
		transition: opacity .3s ease;
		.more {
			margin-bottom: 8px;
			color: var(--Blue);
			font-family: var(--Helios);
		}
		.icon {
			cursor: pointer;
		}
		&:hover {
			.icon {
				animation: more-icon 1s cubic-bezier(.8, 0, 1, 1) infinite;
			}
		}
	}
}

.section-now {
	display: flex;
	flex-direction: column;
	
	.caption {
		height: 290px;
	}
	.head::after {
		margin-top: 50px;
	}
	center {
		margin-bottom: 70px;
		.button {
			background: #fff;
			color: var(--BlueClean);
		}
	}
	.container {
		width: 100%;
		flex-grow: 1;
		position: relative;
	}
	#stars-container {
		position: absolute;
		left: 0;
		top: -40px;
		width: 100%;
		height: calc(100% + 40px);
		pointer-events: none;
		
		.star-item {
			position: absolute;
			opacity: .2;
			animation: star-twinkle var(--duration, 3s) ease-in-out infinite alternate;
			animation-delay: var(--delay, 0s);
		}
	}
	.items {
		position: absolute;
		left: 60px;
		top: 50%;
		transform: translateY(-10px);
		width: calc(100% - 120px);
		height: 422px;
		margin-top: -211px;
	}
	.item {
		position: absolute;
		display: flex;
		gap: 20px;
		align-items: center;
		opacity: 0;
		pointer-events: none;
		will-change: opacity, transform;
		backface-visibility: hidden;
		transform: scale(.8);
		transition: opacity 0.4s ease, transform 0.4s ease, filter .3s;
		animation-timing-function: ease-in-out;
		animation-iteration-count: infinite;

		.text {
			font-size: 15px;
			color: #fff;
			p:not(:first-child) {
				margin-top: 4px;
			}
		}
		.title {
			font-weight: 700;
		}
		.star {
			rotate: var(--star-rotate, 0deg);
			transition: transform .3s ease;
			animation: star-pulse .6s ease-out infinite;
		}
		.avatar img {
			width: 100%;
		}

		&.active {
			opacity: 1;
			transform: scale(1);
			pointer-events: auto;
			&:hover {
				filter: drop-shadow(0 0 28px rgba(80,180,255,.9));
				z-index:50;
			}
		}

		&:nth-child(odd) {
			.star {
				right: -10px;
				bottom: -10px;
			}
			.network {
				left: -4px;
				top: -4px;
			}
		}
		&:nth-child(even) {
			.star {
				right: -10px;
				top: -10px;
			}
			.network {
				left: -4px;
				bottom: -4px;
			}
		}
		&[data-place="1"] {
		    color: var(--Green);
		    right: 7.22%;
		    top: 0;
		}
		&[data-place="2"] {
		    color: rgba(0, 171, 139, 1);
		    left: 25.56%;
		    top: 9.48%;
		}
		&[data-place="3"] {
		    color: var(--GreyMetallic);
		    top: 27.49%;
		    right: 29.11%;
		}
		&[data-place="4"] {
		    color: var(--Blue);
		    top: 32.23%;
		    left: 0;
		}
		&[data-place="5"] {
		    color: var(--GreyMetallic);
		    top: 44.08%;
		    right: 0;
		}
		&[data-place="6"] {
		    color: var(--Green);
		    top: 55.45%;
		    left: 34.17%;
		}
		&[data-place="7"] {
		    color: var(--GreyMetallic);
		    top: 69.91%;
		    right: 21.94%;
		}
		&[data-place="8"] {
		    color: var(--Green);
		    top: 76.78%;
		    left: 10.22%;
		}
	}
}

.section-leaders {
	display: flex;
	flex-direction: column;

	.caption {
		flex-shrink: 0;
		height: 268px;
	}
	.head::after {
		margin-top: 50px;
	}
	.to-leaders {
		position: absolute;
		right: 42px;
		top: 160px;
		width: 430px;
		height: 74px;
		box-shadow: 0px 8px 24px 0px #03144040;
		border-radius: 20px;
		display: flex;
		align-items: center;
		gap: 14px;
		background: #fff;
		padding: 0 14px;

		.title {
			span {
				font-size: 24px;
				color: #008FFF;
			}
			p {
				font-weight: 500;
				font-size: 14px;
				color: #5A5F5C;
				padding-top: 2px;
			}
		}

		button {
			background: #008FFF;
			width: 40px;
			height: 40px;
			border-radius: 50%;
		}

		.images {
			display: flex;

			div {
				width: 46px;
				height: 46px;
				border: 2px solid #fff;
				border-radius: 14px;
				position: relative;
				overflow: hidden;

				&:not(:first-child) {
					margin-left: -14px;
				}
				img {
					object-position: top;
				}
			}
		}
	}
	.container {
		display: flex;
		flex-grow: 1;
		width: 100%;
		height: 100%;
		align-items: center;
		justify-content: flex-end;
		gap: 40px;
	}
	.chart {
		width: 100%;
		height: 100%;
		max-height: max(70%, 500px);
		padding: 0 146px;
		align-items: flex-end;
		position: relative;

		.item {
			position: relative;
			min-width: 200px;
			height: 100%;
			flex: 1;

			.item-box {
				position: relative;
				display: flex;
				flex-direction: column;
				justify-content: flex-end;
				height: 100%;
			}
			.likes {
				text-align: center;
				padding-bottom: 16px;
				font-size: 24px;
				color: var(--BlueClean);
				position: relative;
				z-index: 5;
				pointer-events: none;
			}
			.bar {
				display: flex;
				width: 100%;
				align-items: flex-end;
				justify-content: center;
				height: var(--bar-height);
				position: relative;
				background: linear-gradient(to bottom, var(--item-color) 0, #fff var(--per-value));
			}

			.lid {
				position: absolute;
				left: 0;
				top: -19px;
				width: 100%;
				height: 20px;
				clip-path: inset(100% 0 0 0);
				transition: clip-path 0.1s ease-out;

				div {
					height: 100%;
					background: var(--item-color);
					clip-path: ellipse(50% 100% at 50% 100%);
				}
			}
			.box {
				position: absolute;
				left: 26px;
				width: calc(100% - 52px);
				height: calc(var(--chart-top));
				bottom: 0;
				z-index: 2;
				background: rgba(255,255,255,0);
				padding: 39px 32px 66px;
				border-radius: 32px 32px 0 0;
				transition: background-color 0.1s ease-out;
				display: flex;
				flex-direction: column;
				align-items: center;
				justify-content: space-between;

				.action {
					display: flex;
					flex-direction: column;
					align-items: center;
					gap: 12px;
					font-size: 13px;
					font-weight: 700;
					color: #000;
					pointer-events: none;
					opacity: 0;
					transition: opacity 0.1s ease-out;

					a:hover {
						transform: scale(1.05);
						text-decoration: none;
					}
				}
			}
			@media (hover: hover) and (pointer: fine) {
				&:hover {
					.lid {
						clip-path: inset(0 0 0 0);
					}
					.box {
						background: rgba(255,255,255,1);
					}
					.box .action {
						opacity: 1;
						pointer-events: auto;
					}
					.image {
						transform: scale(1.33);
						border-radius: 24px;
					}
					.profile {
						.star {
							transform: translate(-15px, -15px);
						}
						.network {
							transform: translate(15px, 15px);
						}
						.info {
							transform: translateY(15px);
							color: #000;
						}
						.rank {
							opacity: 1;
						}
					}
				}
			}
		}

		.profile {
			position: relative;
			left: auto;
			top: auto;

			.star {
				left: -8px;
				top: -8px;
			}
			.network {
				right: -7px;
				bottom: 0;
			}
			.info {
				position: absolute;
				top: 100%;
				left: 0;
				width: 100%;
				color: #fff;
				transition: all 0.1s ease-out;
			}
			.title {
				text-align: center;
				font-size: 15px;
				font-weight: 700;
				padding: 12px 0;
			}
		}

		.place-1 {
			color: var(--GreyMetallic);
			--item-color: var(--GreyMetallic);
			--per-value: 75%;
			--bar-height: 80%;
			--chart-top: 100%;
		}
		.place-2 {
			color: var(--BlueClean);
			--item-color: #1E88E5;
			--per-value: 67%;
			--bar-height: 48.5%;
			--chart-top: 80%;
		}
		.place-3 {
			color: var(--Green);
			--item-color: #99CC00;
			--per-value: 65%;
			--bar-height: 42.5%;
			--chart-top: 80%;
		}
		.place-4 {
			color: rgba(0, 171, 139, 1);
			--item-color: #00AB8B;
			--per-value: 50%;
			--bar-height: 34.5%;
			--chart-top: 70%;
		}
		.place-5 {
			color: var(--Blue);
			--item-color: #0070BA;
			--per-value: 28%;
			--bar-height: 21.5%;
			--chart-top: 70%;
		}

		.divider {
			flex-shrink: 0;
			margin: 0 12px;
			background: linear-gradient(to bottom, rgba(0,0,0,0) 0, #0079C2 35%, #fff 100%);
			width: 1px;
			height: 100%;

			&.left {
				margin-left: 0;
			}
			&.right {
				margin-right: 0;
			}
		}
	}
	.gift {
		background: #fff;
		width: 100%;
		height: 60px;
		padding: 0 var(--TopIndent);
		flex-shrink: 0;
		transition: transform .3s ease;

		.icons {
			gap: 24px;
			span {
				width: 32px;
				height: 40px;
				background: url("../images/members/gift.webp");
				background-size: cover;
			}
		}
		.disclaimer {
			font-size: 30px;
			font-family: var(--Helios);
			text-transform: uppercase;
			letter-spacing: -.03em;
			color: var(--Blue);
			transform: translateY(2px);
		}
	}
}

/* SCREEN #7 - FORM */
body:has(.form-popup.open) .header { 
	display: none;
}

.content .section-form .steps {
	gap: 0;
	.step-1 { 
		transform: translateY(20px); transition-delay: 0s;
		.number {
			background-image: url("../images/form/1-bottom.svg");
		}
	}
	.step-2 {
		transform: translateY(30px); transition-delay: 0.1s;
		.number {
			background-image: url("../images/form/2-bottom.svg");
		}
	}
	.step-3 {
		transform: translateY(40px); transition-delay: 0.2s;
		.number {
			background-image: url("../images/form/3-bottom.svg");
		}
	}
}

.section-form {
	.head::after {
		margin-top: 40px;
	}
	.container {
		display: flex;
		flex-direction: column;
		width: 100%;
		height: 100%;
	}
	.caption {
		flex-shrink: 0;
		margin-bottom: 120px;
	}
	.box-wrapper {
		margin: 0 150px;
		height: 100%;
		gap: 150px;
	}

	.steps {
		justify-content: center;
		
		.item {
			color: #fff;
			flex-direction: column;
			gap: 30px;
			opacity: 0;
			height: auto;
			transition: opacity .5s ease, transform .5s cubic-bezier(0.34, 1.56, 0.64, 1);
		}
		.text {
			text-align: center;
		}
		.border {
			position: relative;
		}

		.item-box {
			position: relative;
			width: 350px;
			height: 350px;
			display: flex;
			align-items: center;
			justify-content: center;
			border-radius: 32px;/*
			transform: scale(.8);
			transition: transform 0.4s ease;*/

			&:nth-child(1) {
				border: 1px solid #fff;
			}
			&:nth-child(2) {
				background: var(--BlueClean);
				z-index: 2;
				margin: 174px -24px 0;

				.border::before {
					background: #fff;
				}
			}
			&:nth-child(3) {
				background: var(--LightBlue);
				z-index: 3;

				.item {
					color: var(--BlueClean);
				}
			}
		}
		&.active {
			.item {
				transform: translateY(0px);
				opacity: 1;
			}
		}
	}

	.box {
		position: relative;
		background: #fff;
		border-radius: 32px;
		height: 80%;
		width: 500px;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		max-height: 524px;
		
		.form-title {
			padding: 16px 12px;
			font-size: 16px;
		}
		.auth-widget {
			margin: 0 auto;
			--auth-btn: 44;
		}
		.agree {
			text-align: center;
			font-size: 12px;
			padding-bottom: 30px;
		}

		&.hidden {
			display: none;
		}
		&.box-profile {
			padding: 32px;

			.to-profile {
				width: 100%;
				cursor: default;
				pointer-events: none;
				text-align: left;
			}
			.text {
				font-size: 16px;
				line-height: 1.4;
				.more {
					padding-top: 16px;
					color: var(--Blue);
				}
			}
			.buttons {
				gap: 12px;
				.button {
					height: 32px;
					font-size: 14px;

					svg {
						width: 20px;
						height: 20px;
					}
				}
				.orange {
					flex-grow: 1;
					justify-content: center;
				}
				.grey-bg svg {
					color: #fff;
				}
			}
			&:not(.nope) {
				.negative {
					display: none;
				}
			}
			&.nope {
				.positive {
					display: none;
				}
			}
		}
	}
}
/* ===== SECTION-FORM common ===== */
.form-title {
	width: 100%;
	color: var(--Black);
	font-size: 24px;
	line-height: 1.2;
	text-align: center;
	border-bottom: 1px solid var(--LightBlue);
}
.form-text {
	font-size: 16px;
	line-height: 1.2;
}
.to-profile {
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 0 12px;
	height: 44px;
	font-size: 16px;
	font-weight: 500;
	color: #fff;
	border-radius: 8px;

	img {
		width: 28px;
		height: 28px;
		object-fit: cover;
		object-position: top;
		border-radius: 50%;
	}
	&.vk {
		background: rgba(0, 119, 255, 1);
	}
	.title {
		flex-grow: 1;
	}
}
/* ===== SECTION-FORM .popup ===== */
body:has(.popup.open) .section-form .container {
	display: none;
}
.form-popup {
	display: none;
	position: absolute;
	left: 140px;
	top: 48px;
	z-index: 100;
	background: #fff;
	border-radius: 32px;
	width: calc(100% - 280px);
	height: calc(100% - 96px);

	&.open {
		display: block;
	}

	.close {
		position: absolute;
		right: 22px;
		top: 18px;
		cursor: pointer;
		padding: 10px;

		div {
			border: 1px solid var(--LightBlue);
			border-radius: 8px;
			width: 44px;
			height: 44px;
			transition: all .2s;
		}

		&:hover div {
			background: var(--LightBlue);
		}
	}

	.main-text {
		margin: 40px 0 48px;
		font-size: 14px;
		line-height: 1.4;
		text-align: center;
		justify-content: center;
		display: flex;
		flex-direction: column;
		gap: 16px;

		.title {
			font-family: var(--Helios);
			font-weight: 700;
			color: var(--Blue);
			font-size: 24px;
			line-height: 1;
		}
		.copy {
			display: inline-flex;
			align-items: center;
			gap: 10px;
			background: var(--Grey20);
			padding: 0 12px;
			font-size: 12px;
			font-weight: 500;
			height: 34px;
			border-radius: 6px;
			cursor: pointer;
		}
	}
	
	.form-container {
		display: flex;
		flex-direction: column;
		height: 100%;

		.form-title {
			padding: 0;
			flex-shrink: 0;
			height: 100px;
			display: flex;
			justify-content: center;
			align-items: center;
			font-size: 24px;
		}
		.back {
			cursor: pointer;
			position: absolute;
			left: 32px;
			top: 24px;
			border-radius: 8px;
			border: 1px solid var(--LightBlue);
			height: 44px;
			padding: 0 12px;
			gap: 10px;
			line-height: .9;
			transition: opacity .3s ease;

			&.hidden {
				opacity: 0;
				pointer-events: none;
			}

			span {
				font-size: 18px;
				padding-bottom: 2px;
			}
		}
		.to-profile, .to-exit {
			position: absolute;
			left: 32px;
			top: 26px;
			height: 44px;
			font-size: 16px;
		}
		.to-profile {
			.title {
				font-size: 14px;
				transform: translateY(1px);
			}
		}
		.wrapper {
			position: relative;
			width: 100%;
			height: 100%;
		}
		.container {
			display: flex;
			flex-direction: column;
			align-items: center;
			min-height: 100%;
			justify-content: center;
		}
		&:has(.back-deny.active) .back, &:has(#form-profile.active) .to-profile {
			display: none;
		}
		.to-exit {
			display: none;
			margin: 0;
		}
		&:has(#form-profile.active) .to-exit {
			display: flex;
		}
	}

	.step-item {
		width: 100%;
		height: 100%;
		padding: 40px 0;

		&:not(.active) {
			display: none;
		}
	}
	.buttons {
		gap: 12px;
	}
	.button.long {
		width: 436px;
		justify-content: center;
	}
	.button.hidden {
		display: none;
	}
	/* error */
	#form-error {
		padding-top: 0;
		.container {
			justify-content: center;
			text-align: center;
		}
		.form-text {
			position: absolute;
			left: 0;
			bottom: 44px;
			width: 100%;
			a {
				color: var(--Blue);
			}
		}
		.title {
			font-size: 24px;
			font-weight: 500;
			line-height: 1.2;
			padding-bottom: 48px;
		}
		&:not(.max_generate) .button.profile {
			display: none !important;
		}
		&.max_generate .button.begin {
			display: none !important;
		}
		&.max_generate .try {
			display: none;
		}
	}
	/* profile */
	#form-profile {
		.items {
			display: flex;
			gap: 60px;

			.item {
				position: relative;
				.image {
					width: 283px;
					height: 500px;
					border-radius: 12px;
					overflow: hidden;
				}
				.controls {
					position: absolute;
					right: -22px;
					bottom: -22px;
					z-index: 2;
					width: 52px;
					height: 52px;
					background: #fff;
					padding: 8px;
					border-radius: 8px 0 0 0;
					button {
						width: 36px;
						height: 36px;
						border-radius: 8px;
						padding: 0;
						display: flex;
						align-items: center;
						justify-content: center;

						&.share {
							background: var(--BlueClean);
						}
						&.download {
							background: var(--Orange);
						}
						&:hover {
							transform: scale(1.03) rotate(0.0deg);
						}
					}
				}
			}
		}
	}
	/* step 1 */
	#form-edit {
		margin: 0 auto;
		width: 436px;
		padding-top: 40px;

		.form-item {
			position: relative;
			display: block;
			margin-bottom: 40px;

			.form-label {
				font-size: 16px;
				line-height: 1.125;
				font-weight: 600;
				padding-bottom: 8px;
			}
			.input {
				width: 100%;
				padding: 0 16px;
				margin: 0;
				outline: none;
				background: #F4F4F4;
				border: 0;
				border-bottom: 1px solid #8D8D8D;
				font-size: 14px;
				line-height: 1;
				color: var(--Black);
				height: 48px;

				&.error {
					border-bottom-color: #ff9eb3;
				}
			}
		}
		.form-error {
			font-size: 12px;
			line-height: 1.2;
			color: var(--Blue);
			padding-bottom: 12px;
		}
		.job-type {
			margin-top: 24px;
			background: var(--GreyMetallic);
			border-radius: 4px;
			padding: 0 10px;
			font-size: 17px;
			height: 30px;
			> * {
				display: inline-block;
				margin-bottom: -3px;
			}
			&[data-year="0"] p {
				opacity: 0;
				pointer-events: none;
			}
		}
		.range-wrapper {
			display: flex;
			gap: 16px;
			height: 43px;

			.range-label {
				font-size: 44px;
				color: var(--Black);
				letter-spacing: -.03em;
				flex-shrink: 0;
				min-width: 86px;
			}
		}
		.range-disclaimer {
			width: 200px;
			height: 68px;
			object-fit: cover;
			position: absolute;
			left: -216px;
			top: 50%;
			transform: translateY(-50%);
			pointer-events: none;
			transition: opacity .3s ease;

			&.hidden {
				opacity: 0;
			}
		}
		.gender {
			display: flex;
			gap: 16px;
			.label {
				font-size: 16px;
				line-height: 1.125;
				font-weight: 600;
				padding-bottom: 0;
			}
		}
		.agree {
			.label {
				font-size: 14px;
				line-height: 1.29;
			}
		}
		.checkbox {
			display: flex;
			align-items: center;
			gap: 8px;
			min-height: 20px;
			user-select: none;

			.custom-box {
				position: relative;
				flex-shrink: 0;
				width: 20px;
				height: 20px;
				background: #fff;
				display: flex;
				justify-content: center;
				align-items: center;
				cursor: pointer;

				&.top {
					align-self: flex-start;
					margin-top: 2px;
				}

				&::after {
					content: '';
					inset: 2px;
					position: absolute;
					border-radius: 2px;
					border: 1px solid #161616;
				}

				svg {
					width: 16px;
					height: 16px;
					opacity: 0;
					pointer-events: none;
					transition: opacity .3s ease;
				}
			}
			input {
				position: absolute;
				opacity: 0;
				pointer-events: none;
			}
			input:checked + .custom-box {
				svg {
					opacity: 1;
				}
			}
		}
		.file-drop {
			height: 118px;
			overflow: hidden;
			display: flex;
			gap: 10px;

			input[type=file] {
				width: 0.1px;
				height: 0.1px;
				opacity: 0;
				overflow: hidden;
				position: absolute;
				z-index: -1;
			}
			> * {
				height: 100%;
			}
			label {
				flex-grow: 1;
				border: 1px dashed var(--GreyMetallic);
				border-radius: 4px;
				background: #F4F4F4;
				cursor: pointer;
				display: flex;
				flex-direction: column;
				justify-content: center;
				gap: 12px;
				text-align: center;

				p {
					font-size: 14px;
					color: #A8A8A8;
				}
				button {
					background: var(--Black);
					pointer-events: none;
				}
			}
			&:not(.active) .file-items, &.active .drop-start {
				display: none;
			}
			.file-item {
				width: 96px;
				height: 118px;
				border-radius: 8px;
				overflow: hidden;

				img {
					width: 100%;
					height: 100%;
					object-fit: cover;
				}
			}
		}
		.button {
			max-width: 100%;
		}
	}
	/* step 2 */
	#form-confirm {
		.image {
			height: 400px;
			overflow: hidden;
			display: flex;
			align-items: flex-end;

			img {
				display: block;
				margin: 0 auto;
				width: auto;
				max-width: 100%;
				max-height: 100%;
				border-radius: 12px;
			}
		}
		.title {
			margin-top: 40px;
			font-size: 44px;
			letter-spacing: -.03em;
		}
		.gender {
			font-size: 14px;
			line-height: 1.29;
			font-weight: 500;
		}
		.job {
			padding: 24px 0 58px;
			font-size: 16px;
			font-weight: 500;
		}
	}
	/* step 3 */
	#form-crop {
		.form-text {
			text-align: center;
			padding-top: 44px;
		}

		.crop-window {
			position: relative;
			width: 240px;
			height: 426px;
			flex-shrink: 0;
			overflow: hidden;
			border-radius: 12px;
			cursor: grab;
			user-select: none;
			touch-action: none;

			&:active {
			  cursor: grabbing;
			}
		}
		.disclaimer {
			position: absolute;
			left: 24px;
			bottom: 10px;
			width: calc(100% - 48px);
			background: var(--Black);
			z-index: 10;
			padding: 0 8px;
			font-size: 12px;
			font-weight: 600;
			border-radius: 8px;
			height: 34px;
		}
		.zoom-control {
			display: flex;
			align-items: center;
			gap: 6px;
			width: 500px;
			margin: 30px 0 36px;

			svg:first-child {
				margin: 0 5px;
			}
			/* Для Chrome/Safari */
			input[type="range"] {
			  -webkit-appearance: none;
			  height: 4px;
			  background: var(--GreyMetallic);
			  border-radius: 4px;
			}
			input[type="range"]::-webkit-slider-thumb {
			  -webkit-appearance: none;
			  width: 4px;
			  height: 4px;
			  border: 5px solid var(--BlueClean);
			  background: #fff;
			  border-radius: 50%;
			  cursor: pointer;
			}
			/* Для Firefox */
			input[type="range"]::-moz-range-thumb {
			  width: 4px;
			  height: 4px;
			  border: 5px solid var(--BlueClean);
			  background: #fff;
			  border-radius: 50%;
			  cursor: pointer;
			}
		}
		#zoomRange {
			flex-grow: 1;
		}
		#photo {
			position: absolute;
			top: 0;
			left: 0;
			transform-origin: 0 0;
			pointer-events: none;
		}
		.face-guide {
			position: absolute;
			top: 26px;
			left: 50%;
			transform: translateX(-50%);
			width: 186px;
			height: 186px;
			border-radius: 50%;
			box-shadow: 0 0 0 9999px rgba(40, 40, 40, 0.65);
			pointer-events: none;
		}
	}
	/* step 4 */
	#form-style {
		.items {
			display: flex;
			justify-content: center;
			gap: 32px;
			margin: 78px 0;

			.item {
				width: 243px;
				height: 432px;
				border-radius: 32px;
				overflow: hidden;
				cursor: pointer;
				position: relative;

				img {
					pointer-events: none;
					user-select: none;
				}

				&::before {
					content: '';
					position: absolute;
					inset: 0;
					border-radius: inherit;
					border: 0 solid transparent;
					background: linear-gradient(to top, #032161 0%, #1E88E5 80%, #1E88E5 100%) border-box;
					-webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0) border-box;
					-webkit-mask-composite: xor;
					mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0) border-box;
					mask-composite: exclude;
					transition: border-width .1s ease-out;
					pointer-events: none;
				}

				&:not(.active):hover::before {
					border-width: 4px;
					border-color: #1E88E5;
				}

				&.active::before {
					border-width: 8px;
				}
			}
		}
		.form-text {
			padding-bottom: 48px;
		}
	}
	/* step 5 */
	#form-wait {
		padding: 20px 32px;

		.block-back {
			position: relative;
			width: 100%;
			background: url("../images/sky_2x.webp");
			background-size: cover;
			background-position: top center;
			border-radius: 16px;
			overflow: hidden;

			img {
				pointer-events: none;
				user-select: none;
				width: 504px;
				height: 241px;
			}
			.form-text {
				position: absolute;
				left: 0;
				bottom: 44px;
				text-align: center;
				width: 100%;
			}
		}
		.block-text {
			padding: 54px 0;
		}
	}
	/* step 6 */
	.final-image {
		width: 273px;
		height: 485px;
		border-radius: 12px;
		overflow: hidden;
		margin: 0 auto;
	}
}
/* year slider ---------------------------------------------- */
:root {
--track-bg: #f1f1f3;
--dot-minor: #d3d3d7;
--dot-major: #bcbcc2;
--label-color: #9a9aa1;
--blue-color: #3b82f6;
--value-color: #17181c;
--question-color: #17181c;
}
.yearslider-track-wrap {
position: relative;
height: 22px;
}
.yearslider-track {
position: relative;
width: 100%;
height: 22px;
border-radius: 11px;
background: var(--track-bg);
cursor: pointer;
}
.yearslider-dots {
position: absolute;
inset: 0;
z-index: 2;
pointer-events: none;
}
.yearslider-dot {
position: absolute;
top: 50%;
border-radius: 50%;
background: var(--dot-minor);
transform: translate(-50%, -50%);
}
.yearslider-dot.minor {
width: 3px;
height: 3px;
}
.yearslider-dot.major {
width: 5px;
height: 5px;
background: var(--dot-major);
}
.yearslider-dot.reference {
background: var(--blue-color);
}
.yearslider-fill {
	position: absolute;
	top: 8.5px;
	height: 5px;
	border-radius: 2.5px;
	background: var(--blue-color);
	z-index: 1;
	pointer-events: none;
}
.yearslider-fill.animating {
	transition: left 0.25s ease, width 0.25s ease;
}
.yearslider-handle {
	position: absolute;
	top: 50%;
	left: calc(100% - 8px);
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--blue-color);
	transform: translate(-50%, -50%);
	box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4);
	cursor: grab;
	display: flex;
	align-items: center;
	justify-content: center;
	touch-action: none;
	outline: none;
	z-index: 3;
}
.yearslider-handle.animating {
transition: left 0.25s ease;
}
.yearslider-handle:active {
cursor: grabbing;
}
.yearslider-handle::after {
content: "";
width: 4px;
height: 4px;
border-radius: 50%;
background: #fff;
}
.yearslider-handle:focus-visible {
box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4), 0 0 0 3px rgba(59, 130, 246, 0.35);
}
.yearslider-labels {
	position: relative;
	height: 20px;
	margin-top: 6px;
}
.yearslider-label {
	position: absolute;
	top: 0;
	transform: translateX(-50%);
	font-size: 10px;
	color: var(--label-color);
	font-variant-numeric: tabular-nums;
	user-select: none;
}
