:root {
	--index: 1vh + 1vw;
}

html,
body {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	position: relative;
	font-family: "Factor A", Arial, Helvetica, sans-serif;
	background: #000;
	/* touch-action: pan-left,pan-right,pan-up,pan-down; */
	-webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    -moz-user-select: -moz-none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Крест */

.close {
	width: 25px;
	height: 25px;
	background: rgba(0, 0, 0, 0.4);
	border-radius: 50%;
	backdrop-filter: blur(5px);
	position: absolute;
	right: 25px;
	top: 25px;
	padding: 10px;
	z-index: 9999;
	cursor: pointer;
	transition: all ease 0.5s;
}

.close:hover {
	background: rgba(0, 0, 0, 0.6);
}

/* 3D панорама */

#container {
	position: absolute;
	inset: 0;
	display: none;
	overflow: hidden;
}

#container:hover {
	cursor: default;
}

/* Процесс бар */

#progress_3d_svg circle{
	stroke-dashoffset: 0;
	transition: stroke-dashoffset 1s linear;
	stroke: rgba(0, 0, 0, 0.42);
	stroke-width: 1em;
}

#progress_3d_svg #bar{
	stroke: #000;
}

#progress_3d {
	position: absolute;
	left: calc(50% - 100px);
	top: calc(50% - 20px);
	scale: 0.5;
	display: block;
	height: 200px;
	width: 200px;
	border-radius: 100%;
}

#progress_3d:after {
	color: #fff;
	position: absolute;
	display: flex;
	justify-content: center;
	height: 160px;
	width: 160px;
	left: 50%;
	top: 50%;
	content: attr(data-pct) "%";
	margin-top: -80px;
	margin-left: -80px;
	border-radius: 100%;
	line-height: 160px;
	font-size: 5em;
	font-weight: bold;
}

.logo-site-preload {
	position: absolute;
	top: calc(50% - 35px);
	left: 50%;
	transform: translate(-50%, -50%);
	width: 130px;
}

/* Оверлей */

.overlay{
	width: fit-content;
	display: none;
	gap: 10px;
	justify-content: flex-end;
	align-items: center;
	position: absolute;
	right: 30px;
	bottom: 30px;
}

.overlay div{
	width: 30px;
	height: 30px;
	padding: 9px 10px 10px 9px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(2px);
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all ease 0.5s;
}

.overlay div span{
	display: none;
	position: absolute;
	white-space: nowrap;
	text-align: center;
	top: -35px;
	background: #fff;
	padding: 5px 10px;
	border-radius: 5px;
}

.overlay .full_screen span{
	right: 0;
}

.overlay div:hover span{
	display: block;
}

.overlay div:hover{
	background: rgba(0, 0, 0, 0.6);
}

.overlay img{
	width: 22px;
	height: 22px;
}

/* Модальное окно информации */

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
}

.close_info {
	cursor: pointer;
	position: absolute;
	top: 20px;
	right: 20px;
}

.close_info img{
	width: 40px;
	height: 40px;
}

.modal_box {
	display: flex;
	justify-content: space-between;
    position: absolute;
    top: 50%;
    left: 50%;
    width: fit-content;
    transform: translate(-50%, -50%);
    background: #fff;
    box-sizing: border-box;
    border-radius: 20px;
    transition: all ease 0.3s;
	font-family: 'Inter Tight';
}

.info-box h3{
	font-size: 21px;
	font-weight: 600;
	margin: 0;
	margin-bottom: 30px;
}

.info-box .row{
	padding: 20px 40px;
}

.info-box .column{
	padding: 20px 0;
}

.info-box .column:last-child{
	padding: 40px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.info-box .column:last-child h3{
	margin-bottom: 0;
}

.info-box .bottom_info p{
	color: rgba(139, 139, 139, 1);
	font-size: 16px;
	margin: 0;
	margin-top: 5px;
	width: 200px;
}

.info-box .item{
	display: flex;
	align-items: center;
	gap: 20px;
	width: 100%;
}

.info-box .item svg{
	transform: scale(1.2);
}

.info-box .item p{
	white-space: nowrap
}

.info-box .row p{
	margin: 0;
	color: rgba(139, 139, 139, 1);
	font-size: 16px;
	margin-top: 20px;
}

.info-box .column .row:nth-child(2){
	border-top: 1px solid rgba(221, 221, 222, 1);
	border-bottom: 1px solid rgba(221, 221, 222, 1);
}

/* Модальное окно ссылки */

.link-box{
	flex-direction: column;
	padding: 40px 20px;
}

.link-box h3{
	font-size: 21px;
	font-weight: 600;
	margin: 0;
	margin-bottom: 20px;
	margin-left: 20px;
}

.link-box h3:nth-child(4){
	margin-top: 30px;
}

.link-box .field{
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: calc(100% - 10px);
	background: rgba(246, 245, 247, 1);
	border-radius: 200px;
	height: 55px;
	padding: 5px;
}

.link-box .field span{
	margin: 0 20px;
}

.link-box button{
	background: linear-gradient(117.13deg, #FF8642 40.51%, #C40101 146.53%);
	color: #fff;
	font-family: 'Inter Tight';
	border: none;
	border-radius: 100px;
	height: 100%;
	padding: 0 15px;
	cursor: pointer;
	font-size: 16px;
	width: 130px;
}

/* Карта интерьера */

.map_plan{
	display: none;
	background: #fff;
	border-radius: 10px;
	position: absolute;
	left: 30px;
	bottom: 30px;
	padding: 10px;
}

.map_plan img{
	width: 100%;
	max-width: 400px;
}

.map_plan div{
	position: absolute;
	transform: rotate(180deg);
}

.map_plan div span{
	display: block;
	background: #fff;
	border: 3px solid #000;
	border-radius: 50%;
	width: 12px;
	height: 12px;
	z-index: 1;
	position: relative;
}

.map_plan div svg{
	opacity: 0;
	left: -36px;
    top: -11px;
    position: absolute;
    transform: rotate(45deg);
}

.map_plan div.active span{
	border-color: #fff;
	background: linear-gradient(117.13deg, #FF8642 40.51%, #C40101 146.53%);
}

.map_plan div.active svg{
	opacity: 1;
}

#sprite_1{
	left: calc(62% - 9px);
    top: calc(22% - 9px);
}

#sprite_2{
	right: calc(9% - 9px);
    top: calc(22% - 9px);
}

#sprite_3{
	right: calc(9% - 9px);
    top: calc(40% - 9px);
}

#sprite_4{
	right: calc(11% - 9px);
    bottom: calc(38% - 9px);
}

#sprite_5{
	right: calc(25% - 9px);
    bottom: calc(28% - 9px);
}

#sprite_6{
	right: calc(41.5% - 9px);
    bottom: calc(25.5% - 9px);
}

#sprite_7{
	left: calc(41.5% - 9px);
    bottom: calc(29% - 9px);
}

#sprite_8{
	left: calc(31% - 9px);
    bottom: calc(27% - 9px);
}

#sprite_9{
	left: calc(17% - 9px);
    bottom: calc(18% - 9px);
}

#sprite_10{
	left: calc(23% - 9px);
    bottom: calc(41% - 9px);
}

#sprite_11{
	left: calc(23% - 9px);
    top: calc(44% - 9px);
}

@media (max-width: 820px) {
	.link-box button{
		width: 230px;
		padding: 0;
	}
	.overlay div:hover span{
		display: none;
	}
	.info-box .column:nth-child(2){
		display: none;
	}
	.info-box .column:last-child{
		height: 400px;
	}
	.info-box{
		top: calc(100% - 365px);
		width: calc(100% - 60px);
	}
	.link-box{
		top: calc(100% - 285px);
		width: calc(100% - 20px);
	}
	.link-box h3{
		font-size: 18px;
	}
	.link-box button,
	.link-box .field span{
		font-size: 14px;
	}
	.link-box .field span{
		text-overflow: ellipsis;
		max-width: 100%;
		width: 100%;
		overflow: hidden;
		white-space: nowrap;
	}
}

@media (max-height: 550px) {
	.overlay div:hover span{
		display: none;
	}
	.info-box .column:nth-child(2){
		display: none;
	}
	.info-box .column:last-child{
		height: fit-content;
		padding: 12px 20px;
	}
	.info-box .column .item_wrap{
		display: flex;
		gap: 20px;
		max-width: 300px;
		align-items: center;
		flex-wrap: wrap;
		margin: 15px 0;
	}
	.info-box .item p{
		margin: 5px 0;
	}
	.info-box .item{
		width: fit-content;
	}
	.info-box{
		top: 50%;
		width: calc(100% - 200px);
	}
	.info-box h3{
		font-size: 18px;
	}
	.info-box .bottom_info p{
		font-size: 13px;
	}
	.map_plan{
		transform: scale(0.6);
		bottom: -60px;
        left: -70px;
	}
	.link-box{
		top: 50%;
		padding: 15px;
		width: calc(100% - 200px);
	}
	.info-box .close_info{
		top: 10px;
		right: 10px;
	}
	.link-box .close_info{
		top: 10px;
    	right: 10px;
	}
	.link-box .field{
		height: 45px;
	}
}

@media (max-width: 450px) {
	.overlay{
		right: calc(50% - 142.5px);
	}
	.map_plan{
		width: calc(100% - 60px);
		left: 20px;
    	bottom: 125px;
	}
}

@media (max-width: 600px) {
	.logo-site-preload {
		width: 130px;
		padding: 0 20px;
		padding-bottom: 50px;
	}

	#progress_3d {
		top: 45%;
	}
}