/**
 * Team Carousel — Figma 194:58529 (1600px).
 */

.anm-team-carousel {
	--anm-team-ref-w: 1600;
	--anm-team-card-w: 533;
	--anm-team-heading-gradient: linear-gradient(-2.28deg, #dfdee8 27.93%, #aaa9ad 125.18%, #878787 226.65%);
	--anm-team-btn-gradient: linear-gradient(14.76deg, #8fd9fb 16.98%, #b0e4fc 97.78%);

	box-sizing: border-box;
	width: 100%;
	max-width: calc(var(--anm-team-ref-w) * 1px);
	margin-left: auto;
	margin-right: auto;
	padding-block: clamp(3rem, 6vw, 5rem);
	padding-inline: var(--anm-section-gutter);
	color: #fff;
}

.anm-team-carousel__inner {
	width: 100%;
}

/* --- Nagłówek --- */
.anm-team-carousel__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 2rem;
}

.anm-team-carousel__header-main {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	max-width: 40.625rem;
}

.anm-team-carousel__heading {
	margin: 0;
	font-family: "Playfair Display", Georgia, serif;
	font-size: clamp(2.25rem, 4vw, 4rem);
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: -0.03em;
	background: var(--anm-team-heading-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

.anm-team-carousel__intro {
	margin: 0;
	max-width: 40.4375rem;
	font-family: "IBM Plex Sans", sans-serif;
	font-size: clamp(1rem, 1.25vw, 1.25rem);
	font-weight: 400;
	line-height: 1.4;
	color: #fff;
	text-align: justify;
}

.anm-team-carousel__header-side {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-end;
	justify-content: space-between;
	align-self: stretch;
	min-height: 100%;
}

.anm-team-carousel__label {
	margin: 0.35rem 0 0;
	font-family: "IBM Plex Sans", sans-serif;
	font-size: 1.125rem;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: -0.02em;
	color: #a7a7a7;
	text-align: right;
	white-space: nowrap;
}

.anm-team-carousel__nav {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	margin-top: auto;
	padding-top: 2rem;
}

.anm-team-carousel__nav-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 4rem;
	height: 4rem;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	transition: opacity 0.25s ease;
}

.anm-team-carousel__nav-btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.anm-team-carousel__nav-btn:not(:disabled):hover {
	opacity: 0.85;
}

.anm-team-carousel__nav-btn--prev img {
	transform: rotate(180deg);
}

.anm-team-carousel__nav-btn img {
	display: block;
	width: 4rem;
	height: 4rem;
}

/* --- Splide / karuzela --- */
.anm-team-carousel__slider {
	margin-top: clamp(3rem, 5vw, 9rem);
}

.anm-team-carousel__slider.splide {
	visibility: hidden;
}

.anm-team-carousel__slider.splide.is-initialized {
	visibility: visible;
}

.anm-team-carousel__slider .splide__track {
	overflow: hidden;
}

.anm-team-carousel__slide {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2rem;
	box-sizing: border-box;
	min-width: 0;
}

.anm-team-carousel__photo {
	position: relative;
	width: 100%;
	height: 31.25rem;
	margin: 0;
	padding: 1.5rem;
	border: 1px solid #1a1a1a;
	border-right: 0;
	background-color: #0d0d0d;
	box-sizing: border-box;
	overflow: hidden;
}

.anm-team-carousel__photo-img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}

.anm-team-carousel__sparkle {
	position: relative;
	z-index: 1;
	display: block;
	width: 4rem;
	height: 4rem;
}

.anm-team-carousel__content {
	display: flex;
	flex-direction: column;
	gap: 4rem;
	width: min(100%, 29.6875rem);
}

.anm-team-carousel__meta {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.anm-team-carousel__name {
	margin: 0;
	font-family: "IBM Plex Sans", sans-serif !important;
	font-size: 1.5rem;
	font-weight: 500;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.8);
}

.anm-team-carousel__role {
	margin: 0;
	font-family: "IBM Plex Sans", sans-serif !important;
	font-size: 1.125rem;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: -0.05em;
	color: rgba(255, 255, 255, 0.6);
}

.anm-team-carousel__bio {
	margin: 0;
	font-family: "IBM Plex Sans", sans-serif;
	font-size: 1.125rem;
	font-weight: 400;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.6);
}

.anm-team-carousel__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 1.125rem 2rem;
	border-radius: 8px;
	background: var(--anm-team-btn-gradient);
	font-family: "IBM Plex Sans", sans-serif !important;
	font-size: 1.25rem;
	font-weight: 500;
	line-height: normal;
	letter-spacing: 0.0125em;
	color: #044f71;
	text-decoration: none;
	transition: opacity 0.25s ease;
}

.anm-team-carousel__btn:hover {
	opacity: 0.92;
	color: #044f71;
}

.anm-team-carousel__empty {
	margin: 3rem 0 0;
	font-family: "IBM Plex Sans", sans-serif;
	font-size: 1rem;
	color: rgba(255, 255, 255, 0.6);
}

.anm-team-carousel__nav--footer {
	display: none;
}

/* --- Responsywność --- */
@media (max-width: 1200px) {
	.anm-team-carousel__header {
		flex-direction: column;
	}

	.anm-team-carousel__header-side {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		width: 100%;
	}

	.anm-team-carousel__nav {
		margin-top: 0;
		padding-top: 0;
	}
}

@media (max-width: 782px) {
	.anm-team-carousel__header {
		flex-direction: column;
		gap: 1rem;
	}

	.anm-team-carousel__header-side {
		flex-direction: column;
		align-items: flex-start;
		align-self: auto;
		min-height: 0;
		order: -1;
		width: 100%;
	}

	.anm-team-carousel__label {
		margin: 0;
		text-align: left;
	}

	.anm-team-carousel__header-main {
		gap: 1.5rem;
	}

	.anm-team-carousel__heading {
		font-size: 2.25rem;
	}

	.anm-team-carousel__nav--header {
		display: none;
	}

	.anm-team-carousel__nav--footer {
		display: flex;
		justify-content: flex-start;
		margin-top: 2rem;
		padding-top: 0;
	}

	.anm-team-carousel__photo {
		height: 26.25rem;
	}

	.anm-team-carousel__content {
		gap: 2.5rem;
	}
}
