/* opinie.css — sekcja "Co mówią nasi klienci"
   nowe assety: img/opinie_assets_osobno/ (tło, papierowe karty, pieczątki, washi, spinacz, pinezka) */

.opinie {
	position: relative;
	background: #f6eede url('../img/opinie_assets_osobno/01_tlo_sekcji_opinie.webp') center / cover no-repeat;
	padding: clamp(3rem, 5vw, 5.5rem) 1.5rem clamp(3rem, 5vw, 5rem);
}
/* delikatne, ciepłe przyciemnienie tła, by białe karty się odcinały */
.opinie::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(150, 118, 82, 0.13);
	pointer-events: none;
}
.opinie__inner {
	position: relative;
	z-index: 1;
	max-width: 1240px;
	margin: 0 auto;
}

/* nagłówek */
.opinie__header {
	text-align: center;
	margin-bottom: clamp(2rem, 4vw, 3.4rem);
}
.opinie__eyebrow {
	display: inline-block;
	letter-spacing: 0.42em;
	text-transform: uppercase;
	color: #b98a4e;
	font-size: 1.25rem;
}
.opinie__divider {
	display: block;
	width: clamp(140px, 16vw, 210px);
	height: auto;
	margin: 0.15rem auto 0.2rem;
}
.opinie__title {
	font-family: var(--heading-font);
	font-weight: 600;
	color: var(--heading-color);
	font-size: var(--heading-size);
	line-height: 1.05;
	margin: 0;
}
.opinie__subtitle {
	color: #6b5645;
	font-size: var(--subtitle-size);
	line-height: var(--subtitle-lh);
	margin: var(--subtitle-gap) 0 0;
}

/* siatka kart */
.opinie__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(1.4rem, 2.6vw, 2.6rem);
	align-items: stretch;
}

/* papierowa karta */
.opinia {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 400px;
	padding: 3.2rem 2.8rem 3rem;
}
/* biała kartka papieru z postrzępioną krawędzią (proceduralny filtr SVG) */
.opinia::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background: linear-gradient(158deg, #fffefb 0%, #fdf8ef 55%, #fbf4e8 100%);
	filter: url('#opinie-torn-1') drop-shadow(0 22px 34px rgba(95, 68, 45, 0.32));
}
.opinia--pin::before {
	filter: url('#opinie-torn-2') drop-shadow(0 22px 34px rgba(95, 68, 45, 0.32));
}
.opinia--clip::before {
	filter: url('#opinie-torn-3') drop-shadow(0 22px 34px rgba(95, 68, 45, 0.32));
}
/* treść nad papierem */
.opinia__quote,
.opinia__stars,
.opinia__text,
.opinia__foot,
.opinia__stamp {
	position: relative;
	z-index: 1;
}
.opinia--tape {
	transform: rotate(-1deg);
}
.opinia--clip {
	transform: rotate(1deg);
}

/* dekoracje mocowania kart (washi / pinezka / spinacz) */
.opinia__deco {
	position: absolute;
	z-index: 4;
	pointer-events: none;
}
.opinia__deco--washi {
	top: -6px;
	left: -22px;
	width: 150px;
	height: auto;
	transform: rotate(-38deg);
}
.opinia__deco--pin {
	top: -34px;
	left: 50%;
	width: 48px;
	height: auto;
	transform: translateX(-50%);
}
.opinia__deco--clip {
	top: -22px;
	right: 40px;
	width: 44px;
	height: auto;
	transform: rotate(8deg);
}

/* zawartość karty */
.opinia__stars {
	width: 152px;
	height: auto;
	margin: 0.4rem auto 1rem;
}
.opinia__quote {
	width: 34px;
	height: auto;
	margin: 1.8rem 0 0.5rem;
}
.opinia__text {
	font-family: 'Comfortaa', sans-serif;
	color: #5a4636;
	font-size: 1.5rem;
	line-height: 1.65;
	text-align: left;
	flex: 1;
	margin: 0;
}
.opinia__foot {
	display: flex;
	align-items: center;
	margin-top: 1.4rem;
	padding-right: 100px;
	min-height: 66px;
}
.opinia__name {
	font-family: 'Playfair Display', serif;
	font-size: 1.6rem;
	color: #3a2a22;
}
.opinia__stamp {
	position: absolute;
	right: 40px;
	bottom: 40px;
	width: 94px;
	height: auto;
	transform: rotate(-7deg);
	pointer-events: none;
}

/* pasek CTA — bazowy pasek podartego papieru */
.opinie-cta {
	position: relative;
	display: flex;
	align-items: center;
	gap: 1.4rem;
	max-width: 1040px;
	margin: clamp(2.4rem, 4vw, 3.6rem) auto 0;
	padding: 2.4rem 3rem 2.6rem;
}
.opinie-cta::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background: linear-gradient(158deg, #fffefb 0%, #fdf8ef 60%, #fbf4e8 100%);
	filter: url('#opinie-torn-cta') drop-shadow(0 16px 26px rgba(95, 68, 45, 0.26));
}
.opinie-cta > * {
	position: relative;
	z-index: 1;
}
.opinie-cta__washi {
	position: absolute;
	top: -16px;
	left: -12px;
	width: 104px;
	height: auto;
	transform: scaleX(-1) rotate(45deg);
	pointer-events: none;
	z-index: 2;
}
.opinie-cta__gift {
	flex: 0 0 auto;
	width: 88px;
	height: auto;
	margin-left: 2.2rem;
}
.opinie-cta__text {
	flex: 1;
	text-align: center;
}
.opinie-cta__text strong {
	display: block;
	font-family: 'Comfortaa', sans-serif;
	font-style: normal;
	font-weight: 700;
	color: #5a3e2b;
	font-size: 1.6rem;
}
.opinie-cta__text span {
	color: #7a6553;
	font-size: 1.2rem;
	line-height: 1.4;
}
.opinie-cta__btn {
	margin-left: auto;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	background: #d98a97;
	color: #fff;
	padding: 0.9em 2em;
	border-radius: 12px;
	text-transform: uppercase;
	font-weight: 700;
	letter-spacing: 0.06em;
	font-size: 1.2rem;
	text-decoration: none;
	box-shadow: 0 9px 20px rgba(217, 138, 151, 0.4);
	transition: background 0.2s ease, transform 0.2s ease;
}
.opinie-cta__btn:hover {
	background: #c8707f;
	transform: translateY(-2px);
}

/* responsywność */
@media (max-width: 900px) {
	.opinie__grid {
		grid-template-columns: 1fr;
		max-width: 540px;
		margin: 0 auto;
	}
	.opinia--tape,
	.opinia--clip {
		transform: none;
	}
	.opinia {
		min-height: 0;
	}
}
@media (max-width: 620px) {
	.opinie-cta {
		flex-direction: column;
		text-align: center;
		padding: 2.6rem 1.8rem;
	}
	.opinie-cta__btn {
		margin-left: 0;
	}
	.opinie-cta__washi {
		left: 50%;
		transform: translateX(-50%) rotate(-6deg);
	}
}
