@import url(../variables.css);

.team-main__bg--loader,
.team-main__bg,
.team-block__preloader,
.team-block button[data-type='btn-1'],
.team-block button[data-type='btn-1'] span,
.team-person__photo,
.team-person__photo span,
.team-block div[data-type='list-2']>ul>li>button>span {
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

.team-main {
	padding-bottom: 3px;
	width: 100%;
}

.team-section {
	position: relative;
}

.team-main__bg,
.team-main__bg--loader,
.team-main__bg--loader svg{
	width: 100%;
}

.team-main__bg {
	--bg-ratio: calc(1920 / 1080);
	box-sizing: border-box;
	height: calc(100vh - var(--header-height));
	transition: filter 1s, opacity 2s;
	opacity: 0;
	min-height: 622px;
}

.team-main__bg--loader {
	position: absolute;
	z-index: -1;
	height: calc(100vh - var(--header-height));
	background-image: url(../../img/svg/our-teams.svg);
	transition: opacity 2s;
	opacity: 1;
}

.team-block {
	position: absolute;
	left: calc(50% - 45px);
	transform: translateX(-50%);
	top: 32px;
	width: 1050px;
}

.team-block__preloader {
	position: absolute;
	left: 50%;
	top: 46%;
	transform: translate(-50%, -50%);
	background-image: url(../../img/svg/team-block-preloader.svg);
	width: 100px;
	height: 100px;
	transition: opacity 1s;
}

.team-main__heading {
	position: absolute;
	color: #fff;
	text-align: center;
	font-size: 42px;
	padding: 25px 0 20px;
	border-top: 3px solid #000;
	border-bottom: 3px solid #fff;
	transform: translateY(-50%);
	width: 100%;
	background-color: rgba(121, 121, 121, 0.493);
	backdrop-filter: blur(8px);
	transition: top 2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1s, filter 1s;
	top: 40%;
	filter: grayscale(1);
	opacity: 0.1;
}

.team-main__heading  h1{
	text-transform: uppercase;
	font-family: "Raleway-SemiBold";
}

.team-block button {
	background-color: transparent;
	border: none;
}

.team-block button[data-type='btn-1'] {
	position: relative;
	display: flex;
}

.team-block button[data-type='btn-1'] span {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
}

.team-block button[data-type='btn-1'] {
	cursor: pointer;
	width: 120px;
	height: 120px;
	background-image: url("../../img/svg/honeycomb_main.svg");
}

.team-block button[data-type='btn-1'] span:nth-child(2){
	--side: 72px;
	width: var(--side);
	height: var(--side);
	background-image: url("../../img/svg/honeycomb_1.svg");
	animation: rotate_front 3s linear infinite;
}

.team-block button[data-type='btn-1'] span:nth-child(3){
	--side: 78px; 
	width: var(--side);
	height: var(--side);
	background-image: url("../../img/svg/honeycomb_2.svg");
	animation: rotate_back 4s linear infinite;
}

.team-block button[data-type='btn-1'] span:nth-child(4){
	--side: 85px; 
	width: var(--side);
	height: var(--side);
	background-image: url("../../img/svg/honeycomb_3.svg");
	animation: rotate_front 6s linear infinite;
}

.team-block button[data-type='btn-1'] span:nth-child(5){
	left: 96px;
	top: 97px;
	--side: 10px; 
	width: var(--side);
	height: var(--side);
	background-color: #fff;
	background-image: url("../../img/svg/cryst_1.svg");
	border-radius: 15px;
	border: 1px solid var(--main-color);
	opacity: 0;
	transition: opacity .3s, transform .3s;
}

.team-block button[data-type='btn-1']:hover span:nth-child(5) {
	opacity: 1;
}

.team-block button[data-type='btn-1'] h3{
	position: absolute;
	left: 128px;
	top: 39px;
	white-space: nowrap;
}

.team-block div[data-type='list-1'],
.team-block div[data-type='list-2'] {
	position: absolute;
	box-sizing: border-box;
	width: 250px;
	padding-bottom: 6px;
	border-radius: 15px;
	box-shadow: 0px 0px 5px 0px rgba(255, 255, 255, 0.6);
	background-color: rgba(25, 25, 25, 0.3);
	transition: box-shadow .2s, opacity .5s, filter .5s;
	opacity: 0;
	filter: blur(10px)
}

.team-block div[data-type='list-1'] h2,
.team-block div[data-type='list-1'] h3 {
	text-transform: uppercase;
	font-family: "Raleway-Light";
	color: rgba(255, 255, 255, 0.8);
}

.team-block div[data-type='list-1'] h3,
.team-block div[data-type='list-2'] h3  {
	font-size: 20px;
	padding: 10px 0 8px;
	margin-bottom: 6px;
	border-radius: 15px 15px 0 0;
	background-color: rgba(255, 255, 255, 0.2);
	border-bottom: 1px solid rgba(255, 255, 255, 0.297);
}

.team-block div[data-type='list-1']>ul>li>button,
.team-block div[data-type='list-2']>ul>li>button {
	box-sizing: border-box;
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
}

.team-block div[data-type='list-1']>ul>li>button>h2,
.team-block div[data-type='list-2']>ul>li>button>h2 { 
	transition: transform .3s;
}

.team-block div[data-type='list-1']>span,
.team-block div[data-type='list-2']>span,
.team-block div[data-type='list-2']>ul>li>span,
.team-person__prof>span:last-child {
	position: absolute;
	width: 12px;
	height: 12px;
	z-index: 1;
	background-image: url(../../img/svg/circle_white.svg);
	transition: opacity 1s;
}

.team-block div[data-type='list-1'] ul>li:hover>button>span,
.team-block div[data-type='list-2'] ul>li:hover>button>p,
.team-block div[data-type='list-1'] ul>li:hover>button>h2 { 
	opacity: 1;
}

.team-block div[data-type='list-1']>ul>li:hover>button>h2,
.team-block div[data-type='list-2']>ul>li:hover>button>h2 { 
	transform: scale(1.05);
}

.team-block div[data-type='list-1'] {
	left: 122px;
	top: 185px;
}

.team-block div[data-type='list-1'] button {
	cursor: pointer;
}

.team-block div[data-type='list-1']>span {
	left: 117.5px;
	top: -6px;
}

.team-block div[data-type='list-1']>ul>li>button {
	padding: 7px 12px 0;
	margin-bottom: 7px;
}

.team-block div[data-type='list-1']>ul>li>button>span {
	display: block;
	width: 12px;
	height: 12px;
	border-radius: 25px;
	border: 1px solid var(--main-color);
	background-color: rgba(255, 255, 255, 0.461);
	background-image: url("../../img/svg/cryst_1.svg");
	opacity: 0.3;
	transition: filter .2s, transform .2s, opacity .2s, background-color .2s;
	filter: grayscale(1);
}

.team-block div[data-type='list-2'] {
	left: 321px;
	top: -58px;
	opacity: 0;
	filter: blur(10px);
}

.team-block div[data-type='list-2']>span {
	left: -5.5px;
	top: 16px;
}

.team-block div[data-type='list-2']>ul {
	min-height: 35px;
}

.team-block div[data-type='list-2']>ul>li {
	position: relative;
	border: 1px solid white;
	border-radius: 30px;
	margin: 8px 5px 0;
	padding-left: 10px;
}

.team-block div[data-type='list-2']>ul>li>span {
	display: none;
	right: -6px;
	top: 19px;
}

.team-block div[data-type='list-2']>ul>li>button {
	padding: 3px;
}

.team-block div[data-type='list-2']>ul>li>button>p {
	position: absolute;
	font-size: 10px;
	letter-spacing: 0.7px;
	top: 33px;
	left: 22px;
	font-family: "Raleway-Light";
	text-transform: uppercase;
	color: rgb(255, 255, 255);
	text-shadow: 0px 0px 4px #fff;
	opacity: 0.5;
	transition: opacity .3s;
}

.team-block div[data-type='list-2']>ul>li>button>span {
	width: 25px;
	height: 25px;
	border-radius: 25px;
	border: 2px solid #fff;
	padding: 6px;
	background-color: transparent;
	transition: background-color .3s;
	filter: none;
	opacity: 1;
}

.team-block div[data-type='list-1'] li.team-block__btn-2--active>button>h2 {
	transform: scale(1.05);
}

.team-block div[data-type='list-1'] li.team-block__btn-2--active>button>span {
	filter: grayscale(0);
	opacity: 1;
	border: none;
	background-image: url(../../img/svg/circle_white.svg);
	margin-right: 1px;
}

.team-block div[data-type='list-1']:hover {
	box-shadow: 0px 0px 5px 2px rgba(255, 255, 255, 0.6);
}

.team-block div[data-type='list-2']:hover {
	box-shadow: 0px 0px 5px 2px rgba(255, 255, 255, 0.6);
}

.team-block div[data-type='list-2']>ul>li:hover>button>span { 
	background-color: #fff;
}

.team-block div[data-type="connector-1"],
.team-block div[data-type="connector-2"],
.team-block div[data-type="connector-3"] {
	position: absolute;
}

.team-block div[data-type="connector-1"] svg,
.team-block div[data-type="connector-2"] svg,
.team-block div[data-type="connector-3"] svg,
.team-block div[data-type='list-1'] li.team-block__btn-2--active>button>span {
	filter: drop-shadow(1px 1px 2px rgb(104, 104, 104));
}

.team-block div[data-type="connector-1"] {
	width: 150px;
	left: 96px;
	top: 105px;
}

.team-block div[data-type="connector-2"] {
	width: 80px;
	left: 236px;
	top: -39px;
	opacity: 0;
	transition: opacity .7s;
}

.team-block div[data-type="connector-3"] {
	width: 70px;
	left: 243px;
	top: 22px;
	opacity: 1;
}

.team-block div[data-type='list-1'] li.team-block__btn-2--active > div[data-type="connector-2"] {
	opacity: 1;
}

.team-block div[data-type="connector-1"] svg {
	fill: none;
	stroke: #fff;
	stroke-width: 2px;
	stroke-dasharray: 283;
	stroke-dashoffset: 283;
	transition: stroke-dashoffset .7s;
}

.team-block div[data-type="connector-2"] svg {
	fill: none;
	stroke: #fff;
	stroke-width: 1.4px;
	transition: stroke-dashoffset .7s;
}

.team-block div[data-type="connector-3"] svg {
	fill: none;
	stroke: #fff;
	stroke-width: 1.4px;
	transition: stroke-dashoffset .7s;
}

.team-block button[data-type='btn-1'] span:nth-child(5).btn-1-visible{
	opacity: 1;
	transform: translate(-50%, -50%) rotate(45deg);
}

.team-block div[data-type='list-1'] div[data-type="pagination-1"] {
	display: flex;
	align-items: center;
	justify-content: center;
	padding-top: 3px;
}

.team-block div[data-type='list-1'] div[data-type="pagination-1"] button:not(:first-child) {
	margin-left: 5px;
}

.team-block div[data-type='list-1'] div[data-type="pagination-1"] button {
	width: 25px;
	height: 8px;
	background-image: none;
	background-color: #fff;
	border-radius: 3px;
	border: none;
	opacity: 0.3;
	transition: opacity .3s;
	padding: 0;
}

.team-block div[data-type='list-2'] div[data-type="pagination-1"] {
	padding-top: 6px;
}

.team-block div[data-type='list-1'] div[data-type="pagination-1"] button:hover {
	opacity: 1;
}

.team-block div[data-type='list-1'] div[data-type="pagination-1"] .team-block__btn--active {
	opacity: 1;
}

.team-main__person {
	position: absolute;
	font-family: "Raleway-Medium";
	left: 330px;
	top: 104px;
	width: 260px;
	height: 460px;
	background-color: rgba(95, 95, 95, 0.176);
	border-radius: 15px;
	box-shadow: 0px 0px 5px 0px rgb(255 255 255 / 60%);
	transition: box-shadow .3s, opacity .5s, filter .5s;
	opacity: 0;
	filter: blur(10px)
}

.team-main__person {
	position: absolute;
	font-family: "Raleway-Medium";
	left: 320px;
	top: -44px;
	width: 260px;
	height: 460px;
	background-color: rgba(0, 0, 0, 0.176);
	border-radius: 15px;
	box-shadow: 0px 0px 5px 0px rgb(255 255 255 / 60%);
	transition: box-shadow .3s, opacity .5s, filter .5s;
}

.team-main__person--mobile {
	position: static;
	margin: 0 7px 15px;
}

.team-main__person:hover {
	box-shadow: 0px 0px 5px 2px rgba(255, 255, 255, 0.6);
}

.team-person__photo {
	width: 100%;
	height: 234px;
	background-image: url("../../img/our-team/employee/default.svg");
	/* filter: drop-shadow( 0px 0px 2px rgba(255, 255, 255, 0.7)); */
}

.team-person__photo span {
	position: absolute;
}

.team-person__photo span:first-child {
	left: 15px;
	top: 20px;
	width: 50px;
	height: 50px;
	filter: drop-shadow( 0px 0px 2px rgba(255, 255, 255, 0.7));
}

.team-person__photo span:last-child {
	right: 15px;
	top: 15px;
	width: 50px;
	height: 50px;
	filter: drop-shadow( 0px 0px 2px rgba(255, 255, 255, 0.7));
}

.team-main__person h4 {
	text-transform: uppercase;
	text-align: center;
	font-size: 16px;
	padding: 15px 0 13px;
	border-top: 1px solid #d92e14;
	border-bottom: 1px solid #d92e14;
	background-color: rgba(26, 26, 26, 0.509);
}

.team-person__prof {
	padding: 6px 8px;
	text-align: center;
	color: var(--main-color);
	background-color: #fff;
	font-size: 14px;
}

.team-person__prof>span:last-child {
	left: -5px;
	top: 252px;
}

.team-main__person p {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	font-family: 'Raleway-Medium';
	color: #ffffff;
	line-height: 1.6em;
	padding: 15px;
	text-align: center;
	height: 124px;
	font-size: 14px;
	text-transform: none;
	white-space: pre-line;
	text-shadow: 0px 0px 4px #000000;
}

.team-main__person p>span>span {
	font-family: 'Raleway-Light';
	color: #ffffff;
}

.team-main__person p>span>a {
	color: var(--orange-color);
	text-decoration: none;
	text-shadow: none;
}

.team-block__mobile {
	position: absolute;
	box-sizing: border-box;
	flex-wrap: wrap;
	justify-content: space-evenly;
	display: none;
	left: 50%;
	top: 90px;
	transform: translateX(-50%);
	width: 98%;
	height: calc(-137.3px + 1205.3 * (100vh / 1297)); /* 1068 -> 253 */
	overflow: auto;
	padding: 10px;
	border-bottom: 2px solid rgba(253, 253, 253, 0.137);
}

@media screen and (max-width: 1920px) {
	.team-block__preloader {
		width: 80px;
		height: 80px;
	}
}

@media screen and (max-width: 1280px) {
	.team-block {
		display: none;
	}

	.team-block__mobile {
		display: flex;
	}

	.team-block__preloader {
		width: 80px;
		height: 80px;
	}

	.team-main__person {
		opacity: 1;
		filter: blur(0)
	}
}

@media screen and (max-width: 800px) {
	.team-main__bg {
		height: calc(100vh - var(--header-height) + 18px);
	}

	.team-main__heading {
		font-size: 28px;
		padding: 12px 0 8px;
		border-width: 1px;
		top: 4%
	}

	.team-block__mobile {
		top: 49px;
		height: calc(-86.9px + 1231.9 * (100vh / 1297)); /* 1145 -> 312 */
	}
}

@media screen and (max-width: 1000px) {
	.team-block__mobile {
		justify-content: center;
	}
	
}

@keyframes rotate_front {
	100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes rotate_back {
	100% { transform: translate(-50%, -50%) rotate(-360deg); }
}
