/* K2CTS — samodzielne, edytowalne warianty opinii bez nagłówków sekcji. */
body .entry-content .k2cts-testimonial-variant,
body.editor-styles-wrapper .k2cts-testimonial-variant,
.editor-styles-wrapper .k2cts-testimonial-variant {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: clamp(2.5rem, 5vw, 5.5rem) 0 !important;
}

body .entry-content .k2cts-testimonial-variant--signed,
body .entry-content .k2cts-testimonial-variant--photo,
body.editor-styles-wrapper .k2cts-testimonial-variant--signed,
body.editor-styles-wrapper .k2cts-testimonial-variant--photo,
.editor-styles-wrapper .k2cts-testimonial-variant--signed,
.editor-styles-wrapper .k2cts-testimonial-variant--photo {
	background: #f0e8d5 !important;
}

body .entry-content .k2cts-testimonial-variant--logo,
body.editor-styles-wrapper .k2cts-testimonial-variant--logo,
.editor-styles-wrapper .k2cts-testimonial-variant--logo {
	background: #1c1e18 !important;
}

.k2cts-testimonial-variant__inner {
	width: min(calc(100% - 2 * 3rem), 86rem);
	margin: 0 auto;
}

.k2cts-testimonial-variant__grid {
	display: grid;
	width: 100%;
	margin: 0;
	gap: 1.25rem;
}

.k2cts-testimonial-variant--signed .k2cts-testimonial-variant__grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.k2cts-testimonial-variant--logo .k2cts-testimonial-variant__grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.k2cts-testimonial-variant--photo .k2cts-testimonial-variant__grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.75rem;
}

.k2cts-review-card {
	display: flex;
	min-width: 0;
	min-height: 30.5rem;
	margin: 0 !important;
	padding: 2.15rem 2rem 1.85rem !important;
	flex-direction: column;
	border-top: 3px solid #8b6914;
	background: #fff;
}

.k2cts-review-card--dark {
	background: #1c1e18;
	border: 1px solid rgba(194, 169, 107, 0.12);
	border-top: 3px solid #8b6914;
}

.k2cts-review-card--photo {
	min-height: 34rem;
	padding: 0 !important;
	overflow: hidden;
	border: 1px solid rgba(139, 105, 20, 0.22);
	border-top: 3px solid #8b6914;
}

.k2cts-review-card__photo {
	width: 100%;
	height: 14.5rem;
	margin: 0 !important;
	overflow: hidden;
}

.k2cts-review-card__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.k2cts-review-card__body {
	display: flex;
	min-height: 0;
	padding: 1.9rem 2rem 1.85rem;
	flex: 1 1 auto;
	flex-direction: column;
}

.k2cts-review-card__mark {
	margin: 0;
	color: rgba(139, 105, 20, 0.2);
	font-family: Oswald, sans-serif;
	font-size: 3.2rem;
	font-weight: 700;
	line-height: 0.72;
}

.k2cts-review-card--dark .k2cts-review-card__mark {
	color: rgba(194, 169, 107, 0.16);
}

.k2cts-review-card__quote {
	margin: 1.2rem 0 0;
	color: #44473e;
	font-family: Barlow, sans-serif;
	font-size: 1rem;
	font-style: italic;
	font-weight: 400;
	line-height: 1.85;
}

.k2cts-review-card--dark .k2cts-review-card__quote {
	color: rgba(240, 232, 213, 0.7);
}

.k2cts-review-card__footer {
	margin-top: auto;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(28, 30, 24, 0.1);
}

.k2cts-review-card--dark .k2cts-review-card__footer {
	border-top-color: rgba(240, 232, 213, 0.1);
}

.k2cts-review-card__stars,
.k2cts-review-card__author,
.k2cts-review-card__role,
.k2cts-review-card__course {
	margin: 0;
	font-family: Oswald, sans-serif;
	text-transform: uppercase;
}

.k2cts-review-card__stars {
	color: #8b6914;
	font-size: 0.8rem;
	letter-spacing: 0.15em;
}

.k2cts-review-card__author {
	margin-top: 0.65rem;
	color: #1c1e18;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.15;
}

.k2cts-review-card--dark .k2cts-review-card__author {
	color: #f0e8d5;
}

.k2cts-review-card__role {
	margin-top: 0.2rem;
	color: rgba(28, 30, 24, 0.54);
	font-size: 0.64rem;
	font-weight: 500;
	letter-spacing: 0.11em;
	line-height: 1.35;
}

.k2cts-review-card--dark .k2cts-review-card__role {
	color: rgba(240, 232, 213, 0.53);
}

.k2cts-review-card__course {
	display: inline-block;
	width: fit-content;
	margin-top: 0.7rem;
	padding: 0.25rem 0.55rem;
	background: rgba(139, 105, 20, 0.14);
	color: #7a5b0e;
	font-size: 0.58rem;
	font-weight: 500;
	letter-spacing: 0.09em;
	line-height: 1.25;
}

.k2cts-review-card--dark .k2cts-review-card__course {
	background: #8b6914;
	color: #1c1e18;
}

.k2cts-review-card__logo {
	align-self: flex-end;
	width: 3.8rem;
	margin: 0 0 0.15rem !important;
}

.k2cts-review-card__logo img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
}

@media (max-width: 74.99rem) {
	.k2cts-testimonial-variant--signed .k2cts-testimonial-variant__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 47.99rem) {
	.k2cts-testimonial-variant__inner {
		width: calc(100% - 3rem);
	}

	.k2cts-testimonial-variant--signed .k2cts-testimonial-variant__grid,
	.k2cts-testimonial-variant--logo .k2cts-testimonial-variant__grid,
	.k2cts-testimonial-variant--photo .k2cts-testimonial-variant__grid {
		grid-template-columns: 1fr;
	}

	.k2cts-review-card {
		min-height: 0;
		padding: 1.75rem 1.5rem 1.5rem !important;
	}

	.k2cts-review-card--photo {
		padding: 0 !important;
	}

	.k2cts-review-card__body {
		padding: 1.6rem 1.5rem 1.5rem;
	}
}

/*
 * Gutenberg opakowuje bezpośrednie elementy Grupy w dodatkowy
 * .wp-block-group__inner-container. To ten wrapper jest realnym rodzicem
 * kart, więc to na nim — a nie na zewnętrznej Grupie — musi działać grid.
 */
.k2cts-testimonial-variant__grid {
	display: block !important;
}

.k2cts-testimonial-variant__grid > .wp-block-group__inner-container {
	display: grid !important;
	width: 100% !important;
	max-width: none !important;
	gap: 1.25rem !important;
}

.k2cts-testimonial-variant--signed .k2cts-testimonial-variant__grid > .wp-block-group__inner-container {
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.k2cts-testimonial-variant--logo .k2cts-testimonial-variant__grid > .wp-block-group__inner-container {
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.k2cts-testimonial-variant--photo .k2cts-testimonial-variant__grid > .wp-block-group__inner-container {
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 1.75rem !important;
}

@media (max-width: 74.99rem) {
	.k2cts-testimonial-variant--signed .k2cts-testimonial-variant__grid > .wp-block-group__inner-container {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 47.99rem) {
	.k2cts-testimonial-variant--signed .k2cts-testimonial-variant__grid > .wp-block-group__inner-container,
	.k2cts-testimonial-variant--logo .k2cts-testimonial-variant__grid > .wp-block-group__inner-container,
	.k2cts-testimonial-variant--photo .k2cts-testimonial-variant__grid > .wp-block-group__inner-container {
		grid-template-columns: 1fr !important;
	}
}
