/* =========================================================
	   COLLECTIVE52 – SEKCJA OFERTY
	   ========================================================= */

	.c52-offer-section {
		--c52-bg: #020b16;
		--c52-bg-light: #071827;
		--c52-card-bg: #081522;
		--c52-card-border: rgba(255, 255, 255, 0.1);
		--c52-text: #ffffff;
		--c52-muted: #a9b4c2;
		--c52-primary: #1abdc5;
		--c52-secondary: #1479ff;
		--c52-gap: 24px;

		position: relative;
		overflow: hidden;
		padding: 110px 0 120px;
		background:
			linear-gradient(
				180deg,
				#020b16 0%,
				#04111e 52%,
				#020b16 100%
			);
		color: var(--c52-text);
		isolation: isolate;
	}

	.c52-offer-section::before {
		position: absolute;
		inset: 0;
		z-index: -2;
		content: "";
		pointer-events: none;
		opacity: 0.25;
		background-image:
			linear-gradient(
				rgba(255, 255, 255, 0.025) 1px,
				transparent 1px
			),
			linear-gradient(
				90deg,
				rgba(255, 255, 255, 0.025) 1px,
				transparent 1px
			);
		background-size: 64px 64px;
	}

	.c52-offer-section::after {
		position: absolute;
		right: -180px;
		bottom: -260px;
		z-index: -1;
		width: 640px;
		height: 640px;
		content: "";
		border-radius: 50%;
		pointer-events: none;
		background: radial-gradient(
			circle,
			rgba(20, 121, 255, 0.17) 0%,
			rgba(20, 121, 255, 0) 70%
		);
	}

	.c52-offer-glow {
		position: absolute;
		z-index: -1;
		border-radius: 50%;
		pointer-events: none;
		filter: blur(12px);
	}

	.c52-offer-glow--one {
		top: 80px;
		left: -280px;
		width: 620px;
		height: 620px;
		background: radial-gradient(
			circle,
			rgba(26, 189, 197, 0.13),
			transparent 70%
		);
	}

	.c52-offer-glow--two {
		top: -300px;
		right: 10%;
		width: 580px;
		height: 580px;
		background: radial-gradient(
			circle,
			rgba(20, 121, 255, 0.1),
			transparent 72%
		);
	}

	.c52-section-eyebrow {
		display: flex;
		align-items: center;
		gap: 13px;
		margin-bottom: 21px;
		color: var(--c52-secondary);
		font-size: 13px;
		font-weight: 800;
		letter-spacing: 0.18em;
		line-height: 1;
		text-transform: uppercase;
	}

	.c52-section-eyebrow__line {
		display: inline-block;
		width: 34px;
		height: 3px;
		border-radius: 100px;
		background: linear-gradient(
			90deg,
			var(--c52-secondary),
			var(--c52-primary)
		);
	}

	.c52-offer-heading {
		max-width: 820px;
		margin: 0;
		color: #ffffff;
		font-size: clamp(2.3rem, 2.3vw, 2.3rem);
		font-weight: 800;
		letter-spacing: -0.045em;
		line-height: 1.04;
		text-transform: uppercase;
	}

	.c52-offer-heading span {
		display: block;
		color: var(--c52-secondary);
	}

	.c52-offer-intro {
		max-width: 760px;
		margin: 27px 0 0;
		color: var(--c52-muted);
		font-size: 17px;
		line-height: 1.75;
	}

	.c52-offer-header-actions {
		display: flex;
		align-items: center;
		justify-content: flex-end;
		gap: 22px;
		padding-bottom: 7px;
	}

	.c52-offer-all-link {
		display: inline-flex;
		align-items: center;
		gap: 10px;
		color: #ffffff;
		font-size: 13px;
		font-weight: 800;
		letter-spacing: 0.07em;
		text-decoration: none;
		text-transform: uppercase;
		transition:
			color 0.25s ease,
			transform 0.25s ease;
	}

	.c52-offer-all-link:hover,
	.c52-offer-all-link:focus-visible {
		color: var(--c52-primary);
		transform: translateX(3px);
	}

	.c52-offer-controls {
		display: flex;
		gap: 9px;
		flex-shrink: 0;
	}

	.c52-offer-arrow {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 49px;
		height: 49px;
		padding: 0;
		border: 1px solid rgba(255, 255, 255, 0.18);
		border-radius: 0;
		background: rgba(255, 255, 255, 0.035);
		color: #ffffff;
		cursor: pointer;
		transition:
			background-color 0.25s ease,
			border-color 0.25s ease,
			color 0.25s ease,
			transform 0.25s ease;
	}

	.c52-offer-arrow:hover,
	.c52-offer-arrow:focus-visible {
		border-color: var(--c52-primary);
		background: var(--c52-primary);
		color: #03111b;
		transform: translateY(-2px);
	}

	.c52-offer-arrow:focus-visible,
	.c52-offer-all-link:focus-visible,
	.c52-offer-card:focus-visible {
		outline: 3px solid rgba(26, 189, 197, 0.45);
		outline-offset: 4px;
	}

	.c52-offer-carousel {
		position: relative;
	}

	/*
	 * Gdy liczba wpisów mieści się jednocześnie w widoku,
	 * carousel nie tworzy klonów i pokazuje każdy wpis tylko raz.
	 */
	.c52-offer-carousel.is-static .c52-offer-track {
		transform: none !important;
	}

	.c52-offer-carousel.is-static .c52-offer-progress {
		display: none;
	}

	.c52-offer-controls[hidden] {
		display: none !important;
	}


	.c52-offer-empty {
		position: relative;
		display: grid;
		grid-template-columns: auto minmax(0, 1fr) auto;
		align-items: center;
		gap: 28px;
		min-height: 250px;
		padding: 42px 46px;
		overflow: hidden;
		border: 1px solid rgba(255, 255, 255, 0.11);
		background:
			linear-gradient(135deg, rgba(20, 121, 255, 0.11), rgba(26, 189, 197, 0.04)),
			rgba(8, 21, 34, 0.82);
		box-shadow: 0 30px 80px rgba(0, 0, 0, 0.26);
	}

	.c52-offer-empty::before {
		position: absolute;
		top: -140px;
		right: -110px;
		width: 320px;
		height: 320px;
		content: "";
		border-radius: 50%;
		background: radial-gradient(circle, rgba(26, 189, 197, 0.18), transparent 68%);
		pointer-events: none;
	}

	.c52-offer-empty__icon {
		position: relative;
		z-index: 1;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 92px;
		height: 92px;
		border: 1px solid rgba(26, 189, 197, 0.42);
		background: rgba(26, 189, 197, 0.08);
		color: var(--c52-primary);
		box-shadow: inset 0 0 36px rgba(26, 189, 197, 0.05);
	}

	.c52-offer-empty__content {
		position: relative;
		z-index: 1;
		max-width: 720px;
	}

	.c52-offer-empty__eyebrow {
		display: block;
		margin-bottom: 10px;
		color: var(--c52-primary);
		font-size: 11px;
		font-weight: 900;
		letter-spacing: 0.15em;
		text-transform: uppercase;
	}

	.c52-offer-empty__title {
		margin: 0 0 11px;
		color: #ffffff;
		font-size: clamp(1.45rem, 2.4vw, 2.15rem);
		font-weight: 800;
		letter-spacing: -0.025em;
		line-height: 1.18;
	}

	.c52-offer-empty__text {
		max-width: 650px;
		margin: 0;
		color: var(--c52-muted);
		font-size: 15px;
		line-height: 1.75;
	}

	.c52-offer-empty__action {
		position: relative;
		z-index: 1;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 10px;
		min-height: 52px;
		padding: 14px 22px;
		border: 1px solid var(--c52-primary);
		background: var(--c52-primary);
		color: #03111b;
		font-size: 12px;
		font-weight: 900;
		letter-spacing: 0.06em;
		text-decoration: none;
		text-transform: uppercase;
		white-space: nowrap;
		transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
	}

	.c52-offer-empty__action:hover,
	.c52-offer-empty__action:focus-visible {
		background: #ffffff;
		color: #03111b;
		transform: translateY(-2px);
	}

	.c52-offer-viewport {
		width: 100%;
		overflow: hidden;
		touch-action: pan-y;
	}

	.c52-offer-track {
		display: flex;
		align-items: stretch;
		gap: var(--c52-gap);
		will-change: transform;
	}

	.c52-offer-item {
		flex: 0 0 calc(
			(100% - (var(--c52-gap) * 2)) / 3
		);
		min-width: 0;
	}

	.c52-offer-card {
		position: relative;
		display: flex;
		flex-direction: column;
		height: 100%;
		overflow: hidden;
		border: 1px solid var(--c52-card-border);
		background:
			linear-gradient(
				145deg,
				rgba(255, 255, 255, 0.035),
				rgba(255, 255, 255, 0.01)
			),
			var(--c52-card-bg);
		color: #ffffff;
		text-decoration: none;
		transition:
			border-color 0.35s ease,
			transform 0.35s ease,
			box-shadow 0.35s ease;
	}

	.c52-offer-card::after {
		position: absolute;
		right: 0;
		bottom: 0;
		left: 0;
		height: 3px;
		content: "";
		background: linear-gradient(
			90deg,
			var(--c52-primary),
			var(--c52-secondary)
		);
		transform: scaleX(0);
		transform-origin: left center;
		transition: transform 0.35s ease;
	}

	.c52-offer-card:hover {
		border-color: rgba(26, 189, 197, 0.54);
		color: #ffffff;
		box-shadow: 0 25px 70px rgba(0, 0, 0, 0.36);
		transform: translateY(-8px);
	}

	.c52-offer-card:hover::after {
		transform: scaleX(1);
	}

	.c52-offer-card__image {
		position: relative;
		height: 265px;
		overflow: hidden;
		background: #06101b;
	}

	.c52-offer-card__thumbnail {
		display: block;
		width: 100%;
		height: 100%;
		object-fit: cover;
		transition:
			transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1),
			filter 0.4s ease;
	}

	.c52-offer-card:hover .c52-offer-card__thumbnail {
		filter: brightness(1.08);
		transform: scale(1.07);
	}

	.c52-offer-card__placeholder {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		height: 100%;
		background:
			linear-gradient(
				135deg,
				rgba(20, 121, 255, 0.25),
				rgba(26, 189, 197, 0.06)
			),
			#07131f;
	}

	.c52-placeholder-logo {
		color: rgba(255, 255, 255, 0.14);
		font-size: 76px;
		font-weight: 900;
		letter-spacing: -0.09em;
	}

	.c52-offer-card__overlay {
		position: absolute;
		inset: 0;
		background:
			linear-gradient(
				180deg,
				rgba(0, 8, 17, 0.05) 20%,
				rgba(0, 8, 17, 0.72) 100%
			);
	}

	.c52-offer-card__number {
		position: absolute;
		top: 19px;
		right: 21px;
		z-index: 2;
		color: rgba(255, 255, 255, 0.78);
		font-size: 13px;
		font-weight: 800;
		letter-spacing: 0.16em;
	}

	.c52-offer-card__category {
		position: absolute;
		bottom: 20px;
		left: 22px;
		z-index: 2;
		display: inline-flex;
		align-items: center;
		min-height: 30px;
		padding: 6px 12px;
		background: var(--c52-primary);
		color: #03111b;
		font-size: 11px;
		font-weight: 900;
		letter-spacing: 0.12em;
		line-height: 1;
		text-transform: uppercase;
	}

	.c52-offer-card__content {
		display: flex;
		flex: 1;
		flex-direction: column;
		padding: 29px 28px 31px;
	}

	.c52-offer-card__title {
		margin: 0 0 15px;
		color: #ffffff;
		font-size: clamp(1.3rem, 1.75vw, 1.7rem);
		font-weight: 800;
		letter-spacing: -0.025em;
		line-height: 1.2;
	}

	.c52-offer-card__excerpt {
		margin: 0 0 25px;
		color: var(--c52-muted);
		font-size: 15px;
		line-height: 1.7;
	}

	.c52-offer-card__link {
		display: inline-flex;
		align-items: center;
		gap: 9px;
		margin-top: auto;
		color: var(--c52-primary);
		font-size: 12px;
		font-weight: 900;
		letter-spacing: 0.08em;
		text-transform: uppercase;
	}

	.c52-offer-card__link svg {
		transition: transform 0.25s ease;
	}

	.c52-offer-card:hover .c52-offer-card__link svg {
		transform: translateX(5px);
	}

	.c52-offer-progress {
		position: relative;
		width: 100%;
		height: 2px;
		overflow: hidden;
		margin-top: 43px;
		background: rgba(255, 255, 255, 0.1);
	}

	.c52-offer-progress__bar {
		position: absolute;
		inset: 0 auto 0 0;
		width: 0;
		background: linear-gradient(
			90deg,
			var(--c52-primary),
			var(--c52-secondary)
		);
	}

	.c52-offer-carousel.is-running .c52-offer-progress__bar {
		animation-name: c52OfferProgress;
		animation-duration: var(--c52-autoplay-time, 4500ms);
		animation-timing-function: linear;
		animation-iteration-count: infinite;
	}

	.c52-offer-carousel.is-paused .c52-offer-progress__bar {
		animation-play-state: paused;
	}

	@keyframes c52OfferProgress {
		from {
			width: 0;
		}

		to {
			width: 100%;
		}
	}

	@media (max-width: 1199.98px) {
		.c52-offer-section {
			padding: 95px 0 105px;
		}

		.c52-offer-item {
			flex-basis: calc(
				(100% - var(--c52-gap)) / 2
			);
		}

		.c52-offer-card__image {
			height: 250px;
		}
	}


	@media (max-width: 991.98px) {
		.c52-offer-empty {
			grid-template-columns: auto minmax(0, 1fr);
		}

		.c52-offer-empty__action {
			grid-column: 1 / -1;
			justify-self: start;
		}
	}

	@media (max-width: 991.98px) {
		.c52-offer-header-actions {
			justify-content: flex-start;
			padding-bottom: 0;
		}
	}


	@media (max-width: 767.98px) {
		.c52-offer-empty {
			grid-template-columns: 1fr;
			gap: 20px;
			min-height: 0;
			padding: 30px 24px;
		}

		.c52-offer-empty__icon {
			width: 72px;
			height: 72px;
		}

		.c52-offer-empty__action {
			width: 100%;
		}
	}

	@media (max-width: 767.98px) {
		.c52-offer-section {
			--c52-gap: 16px;

			padding: 76px 0 82px;
		}

		.c52-offer-heading {
			font-size: clamp(2rem, 11vw, 3.25rem);
		}

		.c52-offer-intro {
			margin-top: 21px;
			font-size: 15px;
			line-height: 1.7;
		}

		.c52-offer-header-actions {
			align-items: center;
			justify-content: space-between;
			width: 100%;
			gap: 15px;
		}

		.c52-offer-all-link {
			font-size: 11px;
		}

		.c52-offer-arrow {
			width: 43px;
			height: 43px;
		}

		.c52-offer-item {
			flex-basis: 100%;
		}

		.c52-offer-card__image {
			height: 245px;
		}

		.c52-offer-card__content {
			padding: 25px 23px 28px;
		}

		.c52-offer-card__title {
			font-size: 1.45rem;
		}

		.c52-offer-progress {
			margin-top: 31px;
		}
	}

	@media (max-width: 420px) {
		.c52-offer-header-actions {
			align-items: flex-start;
			flex-direction: column;
		}

		.c52-offer-controls {
			align-self: flex-end;
			margin-top: -38px;
		}

		.c52-offer-card__image {
			height: 220px;
		}
	}

	@media (prefers-reduced-motion: reduce) {
		.c52-offer-card,
		.c52-offer-card__thumbnail,
		.c52-offer-card__link svg,
		.c52-offer-arrow,
		.c52-offer-all-link {
			transition: none !important;
		}

		.c52-offer-progress__bar {
			animation: none !important;
		}
	}
