/**
 * Patient Results — Figma 198:58538 (1600px).
 */

.anm-patient-results {
	--anm-results-ref-w: 1600;
	--anm-results-card-w: 784;
	--anm-results-bg: #8fd9fb;

	box-sizing: border-box;
	position: relative;
	left: 50%;
	right: 50%;
	width: 100vw;
	max-width: 100vw;
	margin-left: -50vw;
	margin-right: -50vw;
	padding-block: clamp(3rem, 6vw, 5rem);
	padding-inline: var(--anm-section-gutter);
	background-color: var(--anm-results-bg);
	color: #090909;
}

.anm-patient-results__inner {
	width: 100%;
	max-width: calc(var(--anm-results-ref-w) * 1px);
	margin-left: auto;
	margin-right: auto;
}

/* --- Nagłówek --- */
.anm-patient-results__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 2rem;
}

.anm-patient-results__header-main {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	max-width: 40.625rem;
}

.anm-patient-results__label {
	margin: 0;
	font-family: "IBM Plex Sans", sans-serif;
	font-size: 1.125rem;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: -0.02em;
	color: rgba(9, 9, 9, 0.8);
}

.anm-patient-results__heading {
	display: flex;
	flex-direction: column;
	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;
	color: #090909;
}

.anm-patient-results__heading-line {
	display: block;
}

.anm-patient-results__header-side {
	flex: 0 1 40.4375rem;
}

.anm-patient-results__intro {
	margin: 0;
	font-family: "IBM Plex Sans", sans-serif;
	font-size: clamp(1rem, 1.25vw, 1.25rem);
	font-weight: 400;
	line-height: 1.4;
	color: #090909;
	text-align: justify;
}

/* --- Splide / karuzela --- */
.anm-patient-results__slider {
	margin-top: clamp(2rem, 4vw, 4rem);
}

.anm-patient-results__slider.splide {
	visibility: hidden;
}

.anm-patient-results__slider.splide.is-initialized {
	visibility: visible;
}

.anm-patient-results__slider .splide__track {
	overflow: hidden;
}

.anm-patient-results__slide {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	box-sizing: border-box;
}

/* --- Zdjęcie przed/po (jedno z etykietami) --- */
.anm-patient-results__compare {
	position: relative;
	width: 100%;
	height: 40.625rem;
	margin: 0;
	border-radius: 8px;
	overflow: hidden;
	background-color: #0e0e0e;
}

.anm-patient-results__photo-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.anm-patient-results__badge {
	position: absolute;
	bottom: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 5.0625rem;
	height: 5.0625rem;
	padding: 2rem 1.5rem;
	border-radius: 8px;
	background-color: #0e0e0e;
	box-sizing: border-box;
	font-family: "IBM Plex Sans", sans-serif;
	font-size: 1.125rem;
	font-weight: 400;
	line-height: 1.4;
	color: #fff;
	white-space: nowrap;
}

.anm-patient-results__badge--before {
	left: 0;
}

.anm-patient-results__badge--after {
	right: 0;
}

/* --- Treść karty --- */
.anm-patient-results__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	border-bottom: 1px solid #030303;
}

.anm-patient-results__meta {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	width: 100%;
	padding: 1rem 1.5rem;
	box-sizing: border-box;
}

.anm-patient-results__duration {
	margin: 0;
	font-family: "IBM Plex Sans", sans-serif !important;
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: -0.07em;
	color: rgba(0, 0, 0, 0.6);
}

.anm-patient-results__details {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.anm-patient-results__name {
	margin: 0;
	font-family: "IBM Plex Sans", sans-serif !important;
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.01em;
	color: #090909;
}

.anm-patient-results__description {
	margin: 0;
	font-family: "IBM Plex Sans", sans-serif;
	font-size: clamp(1rem, 1.25vw, 1.25rem);
	font-weight: 400;
	line-height: 1.4;
	color: #090909;
}

.anm-patient-results__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	padding: 1.125rem 1.5rem;
	border-radius: 8px;
	font-family: "IBM Plex Sans", sans-serif !important;
	font-size: 1.125rem;
	font-weight: 500;
	line-height: normal;
	letter-spacing: 0.01em;
	color: #030303;
	text-decoration: none;
	transition: opacity 0.25s ease;
}

.anm-patient-results__cta:hover {
	opacity: 0.75;
	color: #030303;
}

.anm-patient-results__cta-icon {
	display: block;
	width: 1.25rem;
	height: auto;
	flex-shrink: 0;
	transform: rotate(90deg);
}

/* --- Nawigacja --- */
.anm-patient-results__nav {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	margin-top: 2rem;
}

.anm-patient-results__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-patient-results__nav-btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.anm-patient-results__nav-btn:not(:disabled):hover {
	opacity: 0.85;
}

.anm-patient-results__nav-btn--prev img {
	transform: rotate(180deg);
}

.anm-patient-results__nav-btn img {
	display: block;
	width: 4rem;
	height: 4rem;
}

.anm-patient-results__empty {
	margin: 3rem 0 0;
	font-family: "IBM Plex Sans", sans-serif;
	font-size: 1rem;
	color: rgba(9, 9, 9, 0.6);
}

/* --- Responsywność --- */
@media (max-width: 1200px) {
	.anm-patient-results__header {
		flex-direction: column;
		align-items: flex-start;
	}

	.anm-patient-results__header-side {
		flex-basis: auto;
		max-width: 40.625rem;
	}
}

@media (max-width: 782px) {
	.anm-patient-results__compare {
		height: clamp(16rem, 70vw, 40.625rem);
	}

	.anm-patient-results__badge {
		width: 4rem;
		height: 4rem;
		padding: 1rem;
		font-size: 0.875rem;
	}
}
