/* VERSION-CONTROL
////////////////////////////////////////////////////////////////////////
// cross-offer.css
// v1.0.0 (19.08.2026) - 3.3.4
// last edited by: klaudiusz@klaudiusz-general (ADVERTPR-341 zad. 5)
// author: klaudiusz@klaudiusz-general (d.pakula@advertpro.co)
// https://advertpro.co
//
// Baner cross-oferty na landingach /oferta-tortow-weselnych i /slodki-stolik.
// Wszystko pod prefiksem .x-cross- — custom.css jest partner-managed i go NIE dotykamy.
//
// Paleta ta sama co w wyszukiwarce (wzieta z motywu, nie wymyslona):
//   #2f5f67 teal · #bb9789 roz · #282828 tekst · #6f6f6f tekst drugorzedny
//////////////////////////////////////////////////////////////////////// */

.x-cross {
	--xc-teal: #2f5f67;
	--xc-rose: #bb9789;
	--xc-ink: #282828;
	--xc-muted: #6f6f6f;

	padding: 70px 0;
}

.x-cross__inner {
	display: flex;
	align-items: stretch;
	gap: 0;
	overflow: hidden;
	border-radius: 20px;
	background: linear-gradient(135deg, rgba(187, 151, 137, .16) 0%, rgba(47, 95, 103, .08) 100%);
	box-shadow: 0 18px 44px rgba(30, 52, 56, .12);
	text-decoration: none;
	color: inherit;
	transition: transform .22s cubic-bezier(.22, 1, .36, 1), box-shadow .22s;
}

.x-cross__inner:hover {
	transform: translateY(-3px);
	box-shadow: 0 26px 60px rgba(30, 52, 56, .18);
	text-decoration: none;
	color: inherit;
}

.x-cross__media {
	flex: 0 0 42%;
	max-width: 42%;
	/* obrazek wypelnia kolumne niezaleznie od wysokosci tekstu */
	position: relative;
	min-height: 260px;
	background: rgba(47, 95, 103, .1);
}

.x-cross__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.x-cross__body {
	flex: 1 1 auto;
	min-width: 0;
	padding: 44px 48px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.x-cross__eyebrow {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--xc-rose);
	margin-bottom: 10px;
}

.x-cross__title {
	margin: 0 0 14px;
	font-size: 30px;
	line-height: 1.2;
	font-weight: 400;
	color: var(--xc-ink);
}

.x-cross__text {
	margin: 0 0 22px;
	font-size: 16px;
	line-height: 1.65;
	font-weight: 300;
	color: var(--xc-muted);
}

.x-cross__cta {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 12px 26px;
	border-radius: 999px;
	background: var(--xc-teal);
	color: #fff;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: .02em;
	transition: background .18s, gap .18s;
}

.x-cross__inner:hover .x-cross__cta {
	background: #23484e;
	gap: 14px;
}

.x-cross__cta i { font-size: 17px; line-height: 1; }

/* ---------------------------------------------------------------- MOBILE */

@media (max-width: 991px) {
	.x-cross { padding: 46px 0; }

	.x-cross__inner { flex-direction: column; }

	/* w pionie obrazek dostaje stala wysokosc — inaczej flex-basis 42% daje pasek 0px */
	.x-cross__media {
		flex: 0 0 auto;
		max-width: none;
		width: 100%;
		height: 210px;
		min-height: 0;
	}

	.x-cross__body { padding: 28px 24px 32px; }
	.x-cross__title { font-size: 24px; }
	.x-cross__text { font-size: 15px; }
}
