@charset "utf-8";
:root {
	--black: #343434;
	--gray-700: #949494;
	--gray-900: #7A7A7A;
	--white: #FFF;
	--blue-50: #F0F8FF;
	--blue-100: #D8EBFC;
	--blue-300: #A8D1F7;
	--blue-600: #60A9EE;
	--blue-700: #408CD4;
	--blue-900: #00529F;
	--text-grad: linear-gradient(95deg, #00529F -0.02%, #60A9EE 49.98%, #4296E5 99.98%);
	--hover-grad: linear-gradient(95deg, var(--blue-700) -0.02%, var(--blue-300) 49.98%, var(--blue-600) 99.98%);
	--light-green:#D5FAFF;
}

.voice {
	padding: clamp(20px, 5.3vw, 40px) clamp(20px, 5.3vw, 40px) clamp(80px, 21.2vw, 160px);
}

.voice__category-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(8px, 2.1vw, 16px);
  margin-bottom: clamp(20px, 5.3vw, 40px);
}

.voice__button {
	display: grid;
	align-content: center;
  background: var(--white);
  border: 1px solid var(--blue-600);
  border-radius: 2em;
  padding: 0.4em 0.8em;
  cursor: pointer;
	line-height: 1.3;
}

.voice__button.active {
  background: var(--blue-900);
  color: var(--white);
  border: none;
}

.profile-cards {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 5.3vw, 40px);
}

.profile-card {
  display: none;
	flex-direction: column;
	gap: clamp(20px, 5.3vw, 40px);
	padding: clamp(8px, 2.1vw, 16px);
	border: 1px solid var(--blue-600);
	color: var(--blue-900);
}

.profile-card.show {
  display: flex;
}

.profile-card__wrap {
	display: flex;
}

.profile-card__img {
	width: 50%;
	aspect-ratio: 1 / 1;
}

.profile-card__info {
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: 50%;
	background: var(--blue-50);
	padding: clamp(16px, 4.2vw, 32px);
}

.profile-card__name {
  font-size: clamp(18px, 4.8vw, 36px);
	line-height: 1.3;
	letter-spacing: 0.04em;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.2em;
}

.profile-card__name::after {
	content: "";
	background: url(../img/external-link-icon.svg) no-repeat center center;
	background-size: contain;
	display: inline-block;
	width: clamp(20px, 5.3vw, 40px);
	height: clamp(20px, 5.3vw, 40px);
	min-width: fit-content;
	vertical-align: middle;
}

.profile-card__abst {
	font-size: clamp(16px, 4.2vw, 32px);
  line-height: 1.3;
	padding: 0 clamp(12px, 3.2vw, 24.5px) clamp(12px, 3.2vw, 24.5px);
}

.profile-card__department {
	line-height: 1.3;
}

@media only screen and (min-width: 768px) {
	@media (hover: hover) {
		.profile-card:hover {
			background: var(--blue-50);
			scale: 0.98;
		}
	}
	
	.voice {
		display: grid;
		grid-template-columns: repeat(12, 1fr);
		grid-template-rows: 1fr;
		gap: 16px;
		padding: clamp(36px, 4.7vw, 90px) 0 clamp(48px, 9.4vw, 180px);
	}

	.voice__category {
		grid-area: 1 / 10 / 2 / 13;
	}

	.voice__category-wrap {
		gap: 0.5em;
	}

	.profile-cards {
		grid-area: 1 / 1 / 2 / 9;
		grid-template-columns: subgrid;
		display: grid;
		gap: 1em;
	}

	.profile-card__info {
		padding: 1em;
	}

	.profile-card {
		grid-column: span 4;
		padding: 0.5em;
		gap: clamp(12px, 1.6vw, 30px);
		transition: 0.5s;
	}

	.profile-card__name {
		font-size: clamp(13px, 1.7vw, 33px);
		gap: 0.4em;
	}

	.above-8-letters {
		font-size: clamp(12px, 1.56vw, 30px);
	}

	.profile-card__name::after {
		width: clamp(19px, 2.5vw, 36px);
		height: clamp(19px, 2.5vw, 36px);
		min-width: 1em;
		max-width: 1em;
	}

	.profile-card__abst {
		font-size: clamp(10px, 1.25vw, 24px);
		padding: 0 clamp(7px, 0.94vw, 18px) clamp(7px, 0.94vw, 18px);
	}
}