/* 160px = gap between sections on Framer's offer subpage root (see service-hero.css). */
.treatments {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	padding: 160px 20px 0;
}

.treatments__list {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 38px;
	width: 100%;
	padding: 0 80px 80px;

	@media (min-width: 810px) and (max-width: 1199.98px) {
		padding: 0 40px 40px;
	}

	@media (max-width: 809.98px) {
		padding: 0 25px 25px;
	}
}

/* Cards stick 36px below the top and stack over each other while scrolling. */
.treatment {
	position: sticky;
	top: 36px;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	width: 100%;
	padding: var(--space-30);
	background: var(--color-cream);
	border-radius: var(--radius-12);

	@media (max-width: 809.98px) {
		position: relative;
		top: auto;
	}
}

.treatment__main {
	display: flex;
	flex-direction: column;
	gap: var(--space-5);
	width: 100%;
	overflow: clip;
}

.treatment__head {
	display: flex;
	align-items: flex-start;
	gap: var(--space-10);
	width: 100%;
	overflow: clip;

	@media (max-width: 809.98px) {
		flex-direction: column;
	}
}

.treatment__title {
	flex: 1 0 0;
	min-width: 1px;

	@media (max-width: 809.98px) {
		flex: none;
		width: 100%;
	}
}

.treatment__pricing {
	display: flex;
	flex: 1 0 0;
	flex-direction: column;
	align-items: flex-end;
	justify-content: flex-end;
	min-width: 1px;
	max-width: 300px;
	overflow: clip;

	@media (max-width: 809.98px) {
		flex: none;
		justify-content: flex-start;
		gap: var(--space-5);
		width: 100%;
		max-width: none;
	}
}

.treatment__price {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: var(--space-5);
	width: 100%;
	text-align: right;

	& > span {
		flex: none;
		white-space: nowrap;
	}

	/* Framer stretches the "od" prefix, so the price stays at the row's end. */
	& > .treatment__price-prefix {
		flex: 1 0 0;
		min-width: 1px;
		white-space: normal;
	}

	@media (max-width: 809.98px) {
		justify-content: flex-start;
	}
}

.treatment__duration {
	width: 100%;
	text-align: right;

	@media (max-width: 809.98px) {
		text-align: left;
	}
}

/* Photo (40%) beside the copy; stacked on mobile. */
.treatment__body {
	display: flex;
	align-items: flex-start;
	gap: 26px;
	width: 100%;

	@media (max-width: 809.98px) {
		flex-direction: column;
	}
}

.treatment__image {
	position: relative;
	flex: none;
	width: 40%;
	height: 235px;
	overflow: clip;

	@media (max-width: 809.98px) {
		width: 100%;
	}
}

.treatment__text {
	flex: 1 0 0;
	min-width: 1px;

	& > * + * {
		margin-top: 20px;
	}

	@media (max-width: 809.98px) {
		flex: none;
		width: 100%;
	}
}

/* Top rule drawn inside the box, like Framer's border overlay. */
.treatment__info {
	display: flex;
	align-items: flex-start;
	gap: var(--space-30);
	width: 100%;
	padding-top: var(--space-24);
	overflow: clip;
	box-shadow: inset 0 1px 0 var(--color-ink-10);

	@media (max-width: 809.98px) {
		flex-direction: column;
		gap: var(--space-20);
		padding-top: 15px;
	}
}

.treatment__info-item {
	display: flex;
	flex: 1 0 0;
	align-items: flex-start;
	gap: var(--space-16);
	min-width: 1px;
	overflow: clip;

	@media (max-width: 809.98px) {
		flex: none;
		flex-direction: column;
		gap: var(--space-10);
		width: 100%;
	}
}

.treatment__icon {
	flex: none;
	fill: none;
	stroke: var(--color-ink-70);
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1;
}

.treatment__info-text {
	display: flex;
	flex: 1 0 0;
	flex-direction: column;
	gap: var(--space-5);
	min-width: 1px;

	@media (max-width: 809.98px) {
		flex: none;
		width: 100%;
	}
}

.treatment__actions {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	width: 100%;
	overflow: clip;

	@media (max-width: 809.98px) {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--space-20);
	}
}

/* "Oferta sezonowa" pill (coral, translucent, blurred); the button moves to the right. */
.treatment__badge {
	flex: none;
	padding: 6px 24px;
	font-family: var(--font-questrial);
	font-size: var(--fs-14);
	line-height: var(--lh-140);
	white-space: nowrap;
	color: var(--color-coral);
	background: var(--color-coral-20);
	border-radius: 50px;
	box-shadow: inset 0 0 0 1px var(--color-coral);
	-webkit-backdrop-filter: blur(5px);
	backdrop-filter: blur(5px);
}

/* The short label ("Umów się") is mobile-only here; tablet keeps the full one. */
@media (min-width: 810px) and (max-width: 1199.98px) {
	.treatment .btn__label--long {
		display: inline;
	}

	.treatment .btn__label--short {
		display: none;
	}
}
