/* Local SoMe – Partnerzy (styl zgodny z programem kongresu) */

.lspa {
	--lspa-glow: color-mix(in srgb, var(--lspa-accent) 55%, transparent);
	display: flex;
	flex-direction: column;
	gap: clamp(1.5rem, 3vw, 2.25rem);
	font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
	color: #1c1c24;
	text-align: center;
}

.lspa *,
.lspa *::before,
.lspa *::after {
	box-sizing: border-box;
}

/* Kategoria na jasnofioletowym panelu, jak dni w programie */
.lspa-group {
	padding: clamp(1.5rem, 3.5vw, 2.75rem) clamp(1rem, 3vw, 2.5rem);
	border: 1px solid rgba(124, 47, 208, 0.1);
	border-radius: 28px;
	background:
		radial-gradient(900px 380px at 0% 0%, rgba(124, 47, 208, 0.12), transparent 65%),
		radial-gradient(800px 380px at 100% 100%, rgba(227, 32, 47, 0.07), transparent 65%),
		linear-gradient(180deg, #f8f4fd 0%, #fcf8fb 100%);
	box-shadow: 0 30px 60px -40px rgba(80, 30, 120, 0.3);
}

.lspa .lspa-group__title {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	margin: 0 0 clamp(1.25rem, 2.5vw, 1.75rem);
	padding: 0;
	font-family: inherit;
	font-size: clamp(1.05rem, 1.8vw, 1.3rem);
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #1c1c24;
}

.lspa .lspa-group__title::before,
.lspa .lspa-group__title::after {
	content: "";
	flex: 1;
	height: 2px;
	border-radius: 2px;
}

.lspa .lspa-group__title::before {
	background: linear-gradient(90deg, transparent, var(--lspa-accent));
}

.lspa .lspa-group__title::after {
	background: linear-gradient(90deg, #b5276a, transparent);
}

.lspa .lspa-group__title span {
	background: linear-gradient(90deg, var(--lspa-accent), #b5276a);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* Logotypy */
.lspa-grid {
	--lspa-w: 200px;
	--lspa-h: 120px;
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: clamp(0.85rem, 2vw, 1.5rem);
}

.lspa-group--xl .lspa-grid { --lspa-w: 300px; --lspa-h: 170px; }
.lspa-group--l .lspa-grid  { --lspa-w: 240px; --lspa-h: 140px; }
.lspa-group--m .lspa-grid  { --lspa-w: 200px; --lspa-h: 118px; }
.lspa-group--s .lspa-grid  { --lspa-w: 160px; --lspa-h: 96px; }

.lspa-grid > li {
	margin: 0;
	width: var(--lspa-w);
	max-width: calc(50% - 0.5rem);
}

.lspa .lspa-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.6rem;
	height: 100%;
	padding: 1rem;
	border: 1px solid rgba(124, 47, 208, 0.12);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 8px 24px -16px rgba(80, 30, 120, 0.35);
	color: inherit;
	text-decoration: none;
	transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.lspa a.lspa-tile:hover,
.lspa a.lspa-tile:focus-visible {
	transform: translateY(-4px);
	border-color: color-mix(in srgb, var(--lspa-accent) 35%, transparent);
	box-shadow: 0 22px 44px -20px var(--lspa-glow);
}

.lspa a.lspa-tile:focus-visible {
	outline: 2px solid var(--lspa-accent);
	outline-offset: 3px;
}

.lspa-tile__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: calc(var(--lspa-h) - 2rem);
}

.lspa-tile__logo img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	transition: filter 0.3s ease;
}

/* Opcjonalnie: szare logotypy, kolor po najechaniu */
.lspa--gray .lspa-tile__logo img {
	filter: grayscale(1);
	opacity: 0.85;
}

.lspa--gray .lspa-tile:hover .lspa-tile__logo img,
.lspa--gray .lspa-tile:focus-visible .lspa-tile__logo img {
	filter: none;
	opacity: 1;
}

@media (max-width: 600px) {
	.lspa-group {
		border-radius: 20px;
		padding: 1.25rem 0.85rem;
	}
	.lspa-group--xl .lspa-grid { --lspa-h: 130px; }
	.lspa-group--l .lspa-grid  { --lspa-h: 110px; }
	.lspa-group--m .lspa-grid  { --lspa-h: 96px; }
	.lspa-group--s .lspa-grid  { --lspa-h: 84px; }
	.lspa .lspa-group__title {
		gap: 0.75rem;
		font-size: 0.92rem;
		letter-spacing: 0.05em;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lspa * {
		transition: none !important;
	}
}
