/* ----- mobile version 	---------------------------------------------- */
@media screen and (max-width: 999px) {
	/* reset ---------------------------------------------- */
	body, html {
		overflow: visible;
	}
	input[type=submit], input[type=button], input[type=text], input[type=password], textarea { -webkit-appearance: none !important; }
	 ::-webkit-scrollbar {
   	 	background: rgba(0,0,0,0);
  	  	opacity: 0;
  	}
  	input,
	textarea,
	button,
	select,
	a {
	    -webkit-tap-highlight-color: transparent;
	}
	.desktop-only {
		display: none !important;
	}
	.mb-column {
		flex-direction: column;
	}
	:root {
		--HeaderHeight: 72px;
		--TopIndent: 16px;
		--Indent: 24px;
	}
	.button {
		height: 48px;
		font-size: 14px;
		padding: 0 16px;
		border-radius: 8px;
	}
	.buttons {
		flex-direction: column;
		.button {
			width: 100%;
			justify-content: center;
		}
	}
	/* header ---------------------------------------------- */
	.header {
		.wrapper {
			justify-content: space-between;
			align-items: center;
			padding: 0 var(--TopIndent);
		}
		.logo {
			align-self: flex-start;
			img {
				margin-top: 11px;
				width: 132px;
				height: 39px;
				aspect-ratio: auto;
			}
		}
		.button {
			position: static;
			font-size: 12px;
			padding: 0;
			width: 132px;
			height: 32px;
			border-radius: 6px;
			justify-content: center;
		}
		.burger {
			position: static;
			margin: 0 24px;
			transform: none;
			svg {
				width: 32px;
				height: 32px;
			}
		}
		.menu-buttons {
			left: 0;
			margin-top: 1px;
			top: 100%;
			width: 100%;
			flex-direction: column;
			gap: 12px;
			background: #fff;
			transition: opacity .3s ease;
			padding: 24px;
			box-shadow: 0px 34px 50px 10px rgba(0, 0, 0, 0.25);

			button {
				width: 100%;
				height: 44px;
				font-size: 16px;

				br {
					display: none;
				}
			}
		}
	}
	body.show-menu {
		.burger {
			svg:nth-child(1) {
				display: none;
			}
			svg:nth-child(2) {
				display: block;
			}
		}
		.menu-buttons {
			opacity: 1;
			transition: opacity .3s ease;
		}
	}
	/* content ---------------------------------------------- */
	.content {
		height: auto;
		section {
			min-height: var(--section-height, 100vh);
			height: auto;
			padding-top: 0 !important;
		}
		.head {
			font-size: 40px;
			line-height: 1.2;
			padding-top: 32px;

			&.after::after {
				width: 80px;
				height: 80px;
			}
		}
		.profile {
			width: 72px;
			height: 72px;
			.image {
				border-radius: 20px;
			}
		}
		.steps {
			font-size: 13px;
			gap: 48px;

			.item {
				height: 56px;

				&.step-1 {
					.number { left: 3px; }
				}
				&.step-2 {
					.number { left: -6px; }
				}
				&.step-3 {
					.number { left: -6px; }
				}
			}
			.number {
				height: 48px;
				top: -2px;
			}
			.border {
				width: 56px;
				height: 56px;
				padding: 6px;

				&::before {
					border-radius: 8px;
				}
			}
		}
	}
	.more {
		font-size: 16px;
	}
	/* SCREEN #1 - HERO */
	.section-hero {

		.gallery-wrapper {
			background: url("../images/hero/mb_bg@2x.webp");
			background-size: cover;

			&::before {
				height: 52px;
			}

			.caption {
				svg {
					width: 176px;
					height: 86px;
					max-height: 86px;
					aspect-ratio: auto;
				}
			}
		}
	    .gallery__bg {
			.gallery {
				height: 100%;
				background: url("../images/hero/object_mob_0509.webp") no-repeat center bottom;
				background-size: contain;
			}
	    }

		.rules {
			height: 214px;
			padding: 16px 20px 24px;
			gap: 16px;

			.button { 
				position: static;
				height: 44px;
			}
			.logo {
				position: static;
				width: 141px;
				height: 42px;
			}

			.mb-carousel {
				position: relative;
				height: 56px;
				width: 100%;

				.item {
					position: absolute;
					inset: 0;
					opacity: 0;
					left: 0;
					width: 100%;
					justify-content: center;
					transform: translateX(20px);
					transition: transform 0.3s ease, opacity 0.3s ease;
					pointer-events: none;

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

		}
	}
	/* SCREEN #2 - STYLE */
	.section-style {
		.head::after {
			margin-top: 26px;
		}
		.top-spacer {
			height: 216px;
		}
		.inner-scroll {
			position: static;
			margin-top: 92px;
			.styles {
				height: 176px;
				transition: none;
				img {
					border-radius: 8px;
				}
				> * {
					aspect-ratio: auto;
				}
				.image-center {
					width: 181px;
					height: 176px;
				}
				.image-rotate {
					width: 153px;
					height: 140px;
				}
				.question {
					width: 153px;
					height: 146px;
				}
			}
			.block {
				height: 348px;
			}
		}

		.badge {
			padding-top: 64px;

			img {
				width: 294px;
				height: 228px;
				aspect-ratio: auto;
				transform: none;
			}
		}
		.line {
			width: 100%;
		}
		.text {
			font-size: 18px;
			padding: 32px 20px;
		}
	}

	/* SCREEN #3 - TOGETHER */
	.section-together {
		.head::after {
			margin-top: 26px;
		}
		.pattern {
			align-items: flex-end;

			img {
				width: 100%;
				height: 710px;
			}
		}
		.wrapper {
			margin: 0 20px;
			gap: 0;
		}

		.ranking {
			gap: 16px;
			padding-top: 92px;

			.item {
				height: 32px;

				.title {
					font-size: 18px;
					padding-left: 8px;
				}
				.per {
					font-size: 24px;
					transform: translateY(2px);
				}
			}
		}
		.columns {
			display: block;
			margin-bottom: 36px;
			padding-top: 128px;
		}
		.info-item {
			font-size: 16px;
			width: 100%;

			.title {
				height: 56px;
			}
			.line {
				height: 5px;
			}
			.number {
				padding-top: 14px;

				span {
					font-size: 80px;
				}
			}
			&.join {
				height: 334px;
				margin-bottom: 24px;
			}
			&.collect {
				height: 224px;
			}
		}
	}

	/* SCREEN #4 - STORIES */
	section.section-stories {
		background: #fff;
		.layer {
			position: relative;
			justify-content: flex-start;
			padding-top: 16px;
			height: 100vh;

			&.layer-moving {
				clip-path: none;
				background: linear-gradient(to bottom, #EEE 0, #fff 80px, #fff 100%);
			}
		}
		.container {
			height: auto;

			.text {
				position: static;
				padding: 24px 20px;
				font-size: 16px;
				br {
					display: none;
				}
			}
			.head {
				padding-top: 40px;
				font-size: 62px;
				line-height: .96em;
			}
		}
		.circles {
			height: 212px;
			gap: 16px;
			.items {
				gap: 16px;
				height: 60px;
			}
			.item {
				width: 60px;
				height: 60px;
				border-radius: 20px;
			}
			.row {
				transform: translateX(calc(-50% + 38px));
			}
			.row:nth-child(2) {
				transform: translateX(-50%);
			}
		}
	}

	/* SCREEN #4 - STORY popup */
	.story-popup {
		position: fixed;
		height: 100vh;
		top: 0;
		overflow-y: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		padding-top: var(--HeaderHeight);
		
		.info {
			position: static;
			gap: 20px;
			font-size: 14px;
			width: auto;
			padding: 48px var(--Indent);
		}

		.scroll-data {
			overflow: visible;
			margin-right: 0;
			padding: 0;
			.anons {
				font-size: 32px;
				margin: 24px 0 0 var(--Indent);
				max-width: clamp(260px, 70vw, 286px);
				width: auto;
				padding: 0;
				letter-spacing: -.02em;
			}
			.scroll-text {
				flex-grow: 1;
				font-size: 16px;
				padding: 0 var(--Indent);

				.item {
					margin-bottom: 48px;

					p:not(:first-child) {
						margin-top: 12px;
					}
				}
			}
			.next {
				height: 188px;
				width: 100%;
				padding-bottom: 24px;
				margin-left: 0;
				gap: 24px;

				.next-block {
					gap: 16px;
					.next-image {
						width: 88px;
						height: 88px;
						border-radius: 28px;
					}
					.next-title {
						font-size: 20px;
						letter-spacing: -.03em;
						text-align: left;
					}
				}
			}
		}
		.close {
			margin-top: var(--HeaderHeight);
			border-color: rgba(255, 255, 255, 0.2);
			color: #fff;
			user-select: none;
		}
		.block-image {
			position: relative;
			width: 100%;
			height: 133vw;

			.badge {
				width: 160px;
			}
			.subtitle {
				font-size: 12px;
				left: 20px;
				top: 20px;
			}
			.image {
				&:before {
					height: 180px;
				}

				&::after {
					right: 6px;
					top: auto;
					bottom: -72px;
					transform: none;
					width: 118px;
					height: 140px;
				}
			}
			.block {
				left: 20px;
				bottom: 14px;

				.title {
					font-size: 38px;
				}
			}
		}
	}

	/* SCREEN #5 - STORIES */
	.section-history {
		background: #fff;

		&.scrolling {
			.start {
				display: none;
			}
			.scroll-data {
				.items {
					height: auto;
					padding-bottom: 0;

					&:before {
						height: calc(100% - 80px);
						background: linear-gradient(to bottom, #fff 0%, #A5A8A6 15%, #A5A8A6 98%, #0070BA 100%);
					}
				}
				.marker {
					display: none;
				}
			}
		}

		.scroll-data {
			margin-right: 0;
			padding: 0;
			overflow: visible;
			height: auto;

			.caption {
				padding-bottom: 32px;
				.title {
					padding: 4px 20px 0;
					font-size: 16px;
					line-height: 1.4;
				} 
			}

			&::before {
				height: 204px;
			}
			.items {
				padding-top: 48px;
				gap: 32px;

				&:before {
					top: 0;
					height: 100%;
				}
			}
			.image {
				position: static;
				aspect-ratio: auto !important;
				width: 100vw !important;
				img {
					object-fit: contain;
					object-position: top;
				}
			}
			.box {
				padding: 24px;
				gap: 16px;
				width: auto;
				margin-left: 20px !important;
				margin-right: 20px !important;
				transform: none !important;
				position: relative;
				z-index: 3;

				.year {
					font-size: 48px;
				}
				.title {
					font-size: 26px;
				}
				.text {
					font-size: 16px;
				}
			}
			#year-2026 {
				.image {
					height: 65vw;
				}
			}
			#year-2025 {
				.image {
					height: 111vw;
					margin-bottom: -100px;
				}
			}
			#year-2024 {
				.box {
					z-index: 4;
				}
			}
			#year-2023 {
				.image {
					height: 108vw;
					margin-top: -84px;
					margin-bottom: -10px;
				}
			}
			#year-2021 {
				.image {
					height: 138vw;
					margin-top: 32px;
					margin-bottom: -58px;
				}
				.box.box-extra {
					width: auto;
					margin: 0;
				}
			}
			#year-2014 {
				.image {
					height: 92vw;
					margin-bottom: -68px;
				}
			}
			#year-2004 {
				.image {
					margin-top: 32px;
					height: 109vw;
				}
			}
			#year-1997 {
				margin-top: -82px;
			}
			#year-1996 {
				padding-bottom: 90vw;
				.image {
					position: absolute;
					left: 0;
					bottom: 0;
					height: 216vw;
					transform: none;
				}
				.end-logo {
					bottom: 38px;
					width: 52px;
					height: 52px;
				}
			}
		}
		.start {
			position: relative;
			z-index: 2;
			padding-top: 30px;
		}
	}
	
	.section-now {
		.caption {
			height: 156px;
		}
		.head::after {
			margin-top: 28px;
		}
		center {
			margin-bottom: 40px;
		}
		#stars-container {
			top: 0;
			height: 100%;
		}
		.items {
			position: absolute;
			left: 0;
			top: 0;
			transform: none;
			width: 100%;
			height: 100%;
			margin-top: 0;
		}
		.item {
			flex-direction: column;
			gap: 12px;
			width: 122px;
			max-height: 134px;

			.text {
				font-size: 12px;
				line-height: 1.4;
				margin: 0 -12px;
				text-align: center;
				p {
					display: inline;
				}
			}

			&[data-place="1"] {
			    right: 15px;
			}
			&[data-place="2"] {
			    left: 32px;
			    top: 28px;
			}
			&[data-place="3"] {
			    top: 31%;
			    right: 24%;
			}
			&[data-place="4"] {
			    bottom: 18%;
			    left: 34px;
			    top: auto;
			}
			&[data-place="5"] {
			    right: 32px;
			    bottom: 12%;
			    top: auto;
			}
		}
	}

	.section-leaders {
		.to-leaders {
			position: static;
			width: auto;
			height: 62px;
			border-radius: 16px;
			gap: 12px;
			padding: 0 12px;
			margin: 8px 20px 16px;

			.title {
				span {
					font-size: 18px;
				}
				p {
					font-size: 12px;
				}
			}
			button {
				width: 36px;
				height: 36px;
			}
			.images {
				div {
					width: 36px;
					height: 36px;
					border-radius: 12px;

					&:not(:first-child) {
						margin-left: -12px;
					}
				}
			}
		}
		.caption {
			height: 170px;
		}
		.head::after {
			margin-top: 26px;
		}
		.container {
			gap: 30px;
			height: auto;
		}
		svg.star {
			stroke: #fff;
		}
		.chart {
			height: auto;
			max-height: none;
			padding: 0;

			.item {
				padding-top: 0px;
				--box-indent: 0px;

				.place {
					text-align: center;
					font-size: 16px;
					color: var(--GreyMetallic);
					padding-bottom: 12px;
				}
				.lid {
					top: -14px;
					height: 15px;
					clip-path: inset(0 0 0 0);
				}
				.box {
					left: 40px;
					width: calc(100% - 80px);
					padding: 16px 20px 66px;
					border-radius: 20px 20px 0 0;
					gap: 0;
					font-size: 12px;
					opacity: 1;
					color: inherit;
					justify-content: flex-start;
					background: #fff;
					.action {
						position: absolute;
						bottom: 24px;
						width: 100%;
						display: flex;
						flex-direction: column;
						gap: 8px;
						align-items: center;
						color: #000;
						opacity: 1;
					}
				}
			}
			.main-data {
				margin: 16px 20px 32px;
				height: 360px;
				display: flex;

				.item {
					flex-grow: 1;
					padding-top: 100px;

					.star {
						width: 40px;
						height: 40px;
						top: -18px;
					}
					.box {
						bottom: 54px;
						height: calc(100% - 54px);
					}
				}

				.profile {
					width: 100px;
					height: 100px;

					.title {
						font-size: 16px;
					}
				}
			}
			.scroll-data {
				overflow-x: auto;
				display: flex;
				scroll-snap-type: x mandatory;
				-webkit-overflow-scrolling: touch;
				gap: 12px;
				height: 265px;
				padding-bottom: 6px;

				.item {
					min-width: 144px;
					width: 144px;

					.likes {
						font-size: 18px;
						padding-bottom: 8px;
					}
					.box {
						width: calc(100% - 16px);
						height: 188px;
						bottom: auto;
						top: 0;
						left: 8px;
						border-radius: 32px;
						.action {
							bottom: -20px;
							p {
								display: none;
							}
						}
					}
				}

				.place-2 {
					margin-left: 20px;
				}
				.place-5 {
					margin-right: 20px;
				}
			}

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

				.star {
					left: -10px;
					top: -10px;
				}
				.network {
					display: none;
				}
				.info {
					color: #000;
				}
				.title {
					font-size: 14px;
				}
			}
		}
		.gift {
			width: 100%;
			height: auto;
			gap: 20px;
			padding: 16px;
			justify-content: center;

			.icons {
				gap: 24px;
				span {
					width: 26px;
					height: 32px;
				}
			}
			.disclaimer {
				font-size: 23px;
			}
		}
	}

	.section-form {
		.head::after {
			margin-top: 20px;
		}
		.caption {
			margin-bottom: 90px;
		}
		.form-title {
			font-size: 16px;
		}

		.footer {
			margin-top: 0;
			padding: 48px 0;
			font-size: 13px;

			ul {
				gap: 24px;
				align-items: center;
			}
		}

		.box-wrapper {
			margin: 0;
			padding: 0 var(--Indent);
			width: 100%;
			height: auto;
			gap: 0;
		}

		.steps {
			width: 100%;

			.item {
				gap: 16px;
				height: auto;
				.number {
					top: -10px;
					height: 52px;
				}
				.border {
					width: 62px;
					height: 62px;
				}
			}

			.item-box {
				width: 200px;
				height: 200px;
				border-radius: 20px;

				&:nth-child(2) {
					margin: -60px 0 -15px;
					align-self: flex-end;
				}
			}
		}

		.box {
			margin-top: 48px;
			border-radius: 20px;
			width: 100%;
			max-height: none;
			height: auto;
			display: flex;
			gap: 48px;

			.auth-widget {
				margin: 0 auto;
				width: 287px;
			}
			.agree {
				padding: 0 20px 24px;
				line-height: 1.2;
			}

			p br {
				display: none;
			}

			&.box-profile {
				padding: 24px;

				.text {
					font-size: 16px;
					line-height: 1.4;
					.button {
						margin-top: 16px;
						font-size: 14px;
					}
				}
				.buttons {
					flex-direction: column-reverse;
					.button {
						width: 100%;
						height: 56px;
					}
				}
			}
		}
	}
}

/* ===== SECTION-FORM .popup ===== */
body:has(.form-popup.open) .fixed { 
	z-index: 100;
}
.form-popup {
	position: fixed;
	left: 0;
	top: 0;
	background: none;
	width: 100%;
	height: calc(var(--vh, 1vh) * 100);
	padding: 20px;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	overflow-y: auto;

	.close {
		right: 16px;
		top: 16px;
		padding: 0;
		user-select: none;

		div {
			border-radius: 6px;
			width: 32px;
			height: 32px;
		}

		svg {
			width: 16px;
			height: 16px;
		}
	}

	.form-container {
		position: relative;
		min-height: calc(var(--vh, 1vh) * 100 - 40px);
		height: auto;
		padding: 65px 0 20px;
		padding-bottom: max(20px, env(safe-area-inset-bottom)); 
		border-radius: 16px;
		background: #fff;

		.form-title {
			height: 52px;
			font-size: 17px;
			border-top: 1px solid var(--LightBlue);
		}
		.back {
			display: none;
		}
		.to-profile, button.to-exit {
			left: 16px;
			top: 16px;
			height: 32px;
			font-size: 12px;
			padding: 0 8px;

			img {
				width: 18px;
				height: 18px;
			}
		}
		.container {
			padding: 0 16px;
			min-height: auto;
		}
		button.to-exit {
			width: auto;
			svg {
				width: 16px;
				height: 16px;
			}
		}
	}

	.step-item {
		padding: 32px 0 0;
		min-height: calc(100vh - 180px);
	}
	.buttons {
		gap: 12px;
		width: 100%;
	}
	.button:not(.sm) {
		height: 56px;
		width: 100%;
		font-size: 14px;
		justify-content: center;
	}
	.button.long {
		width: 100%;
	}
	.main-text {
		margin: 48px 0;
		p br {
			display: none;
		}
	}
	/* error */
	#form-error {
		.container {
			padding: 0 20px;
		}
		.form-text {
			bottom: 32px;
			font-size: 14px;
		}
		.title {
			font-size: 18px;
			padding: 48px 0;
		}
	}
	/* profile */
	#form-profile {
		.items {
			flex-direction: column;
			gap: 40px;
			padding-bottom: 12px;

			.item {
				.image {
					width: 215px;
					height: 380px;
					border-radius: 6px;
				}
				.controls {
					right: -16px;
					bottom: -16px;
					width: 40px;
					height: 40px;
					button {
						width: 24px;
						height: 24px;

						svg {
							width: 16px;
							height: 16px;
						}
					}
				}
			}
		}
	}
	/* step 1 */
	#form-edit {
		width: auto;
		padding-top: 32px;
		margin: 0 16px;

		.form-item {
			margin-bottom: 20px;

			.form-label {
				font-size: 14px;
			}
		}
		.job-type {
			margin-top: 16px;
			font-size: 14px;
		}
		.range-wrapper {
			flex-direction: column;
			height: 90px;
			gap: 0;
		}
		.range-label {
			justify-content: flex-end;
			display: flex;
			font-size: 32px;
		}
		.range-disclaimer {
			left: 0;
			width: 163px;
			height: 52px;
			margin-top: 4px;
			object-fit: contain;
		}
		.file-drop {
			height: 96px;
			gap: 8px;

			label p {
				display: none;
			}
			&:not(.active) .file-items, &.active .drop-start {
				display: none;
			}
			.file-item {
				width: 77px;
				height: 96px;
				border-radius: 6px;
			}
			.button {
				margin: 0;
			}
		}
		.gender .label {
			font-size: 14px;
		}
		.agree .label {
			font-size: 12px;
		}
		.button {
			margin-top: 32px;
		}
	}
	/* step 2 */
	#form-confirm {
		margin-top: 16px;
		.image {
			height: 264px;
			img {
				display: inline-flex;
				border-radius: 6px;
			}
		}
		.title {
			margin-top: 24px;
			font-size: 30px;
		}
		.gender {
			font-size: 14px;
			padding: 4px 0 16px;
		}
		.job {
			padding-top: 0;
			padding-bottom: 48px;
			font-size: 12px;
		}
	}
	/* step 3 */
	#form-crop {
		.form-text {
			padding-top: 32px;
		}

		.crop-window {
			width: 190px;
			height: 340px;
			border-radius: 8px;
		}
		.disclaimer {
			left: 8px;
			width: calc(100% - 16px);
			padding: 0 6px;
			font-size: 11px;
			border-radius: 6px;
			height: 30px;
		}
		.zoom-control {
			width: 100%;

			svg:first-child {
				margin: 0 4px;
			}

			input[type="range"]::-webkit-slider-thumb {
			  -webkit-appearance: none;
			  width: 6px;
			  height: 6px;
			  border: 12px solid var(--BlueClean);
			}
			/* Для Firefox */
			input[type="range"]::-moz-range-thumb {
			  width: 6px;
			  height: 6px;
			  border: 12px solid var(--BlueClean);
			}
		}
		.face-guide {
			top: 21px;
			width: 147px;
			height: 147px;
		}
	}
	/* step 4 */
	#form-style {
		.items {
			flex-direction: column;
			gap: 24px;
			margin: 0;

			.item {
				width: 243px;
				height: 432px;
				border-radius: 32px;
			}
		}
		.form-text {
			padding: 32px 0;
		}
	}
	/* step 5 */
	#form-wait {
		padding: 16px;

		.block-back {
			height: calc((100vw - 72px)*1.63);

			img {
				width: 100%;
				height: calc((100vw - 72px)*.48);
			}
			.form-text {
				bottom: 32px;
				font-size: 14px;
			}
		}
		.block-text {
			padding: 50px 20px;
			font-size: 14px;
			text-align: center;
		}
	}
	/* step 6 */
	.final-image {
		width: 170px;
		height: 300px;
		border-radius: 6px;
	}
}