/* RaviElson Broszura — wg Figmy, node 1269:39 (karta 1211×251)
   Poppins: nadtytuł SemiBold 12 / tytuł SemiBold 32 / opis Regular 12 / info SemiBold 12.
   Teksty w Figmie mają przycięty interlinia (text-box-trim: cap ↔ alphabetic),
   więc odstęp 16 px liczy się od linii wersalików do linii bazowej. */

.rbr {
	--rbr-bg: transparent;
	--rbr-summary: #403806;
	--rbr-title: #162b3b;
	--rbr-desc: #54717b;
	--rbr-meta: #868686;
	--rbr-border: #404040;
	--rbr-font: "Poppins", sans-serif;

	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	column-gap: 32px;
	width: 100%;
	margin: 0;
	padding: 24px 32px;
	background: var(--rbr-bg);
	overflow: hidden;
	box-sizing: border-box;
}

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

/* ── Okładka: kartka A4 obrócona o -7.47°, ramka = obrys po obrocie ── */

.rbr__cover {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 155.534px;
	height: 202.779px;
}

.rbr__sheet {
	position: relative;
	flex: none;
	width: 132.313px;
	height: 187.158px;
	transform: rotate(-7.47deg);
	box-shadow: 0 4px 6.9px 0 rgba(0, 0, 0, 0.25);
	background: #fff;
}

.rbr .rbr__img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
	border-radius: 0;
}

/* ── Teksty ── */

.rbr__text {
	flex: 0 1 552px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	padding-right: 64px;
	word-break: break-word;
}

.rbr .rbr__summary,
.rbr .rbr__title,
.rbr .rbr__desc,
.rbr .rbr__meta {
	width: 100%;
	margin: 0;
	padding: 0;
	font-family: var(--rbr-font);
	font-style: normal;
	line-height: 1.5;
	text-box: trim-both cap alphabetic;
}

/* Bez text-box-trim: ujemne marginesy zdejmują to samo, co przycięcie
   (Poppins przy line-height 1.5 — ok. 0.4em nad wersalikami i pod linią bazową). */
@supports not (text-box: trim-both cap alphabetic) {
	.rbr .rbr__summary,
	.rbr .rbr__title,
	.rbr .rbr__desc,
	.rbr .rbr__meta {
		margin-top: -0.4em;
		margin-bottom: -0.4em;
	}
}

.rbr .rbr__summary {
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 2.52px;
	text-transform: uppercase;
	color: var(--rbr-summary);
}

.rbr .rbr__title {
	font-weight: 600;
	font-size: 32px;
	letter-spacing: normal;
	text-transform: uppercase;
	color: var(--rbr-title);
}

.rbr .rbr__desc {
	font-weight: 400;
	font-size: 12px;
	color: var(--rbr-desc);
}

.rbr .rbr__meta {
	font-weight: 600;
	font-size: 12px;
	color: var(--rbr-meta);
}

/* ── Przycisk ── */

.rbr a.rbr__btn,
.rbr .rbr__btn {
	flex: 0 1 272px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 272px;
	min-width: 200px;
	margin: 0;
	padding: 12px 16px;
	background: transparent;
	border: 1px solid var(--rbr-border);
	border-radius: 4px;
	color: #000;
	font-family: var(--rbr-font);
	font-weight: 600;
	font-size: 12px;
	line-height: 16px;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.rbr .rbr__icon {
	display: block;
	flex: none;
	width: 16px;
	height: 16px;
}

.rbr a.rbr__btn:hover,
.rbr a.rbr__btn:focus-visible {
	background: var(--rbr-border);
	color: #fff;
	text-decoration: none;
}

.rbr a.rbr__btn:focus-visible {
	outline: 2px solid var(--rbr-title);
	outline-offset: 2px;
}

.rbr .rbr__btn--missing {
	border-style: dashed;
	border-color: #c0392b;
	color: #c0392b;
	white-space: normal;
	text-align: center;
}

@media (prefers-reduced-motion: reduce) {
	.rbr a.rbr__btn {
		transition: none;
	}
}

/* ── Tablet: okładka z lewej, przycisk pod tekstem ── */

@media (max-width: 900px) {
	.rbr {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
		align-items: center;
		column-gap: 32px;
		row-gap: 24px;
	}

	.rbr--no-cover {
		grid-template-columns: minmax(0, 1fr);
	}

	.rbr__cover {
		grid-row: 1 / span 2;
	}

	.rbr__text {
		padding-right: 0;
		align-self: end;
	}

	.rbr a.rbr__btn,
	.rbr .rbr__btn {
		align-self: start;
		justify-self: start;
		width: 100%;
		max-width: 272px;
	}

	.rbr--no-cover .rbr__text,
	.rbr--no-cover .rbr__btn {
		align-self: auto;
	}
}

/* ── Telefon: jedna kolumna ── */

@media (max-width: 600px) {
	.rbr {
		grid-template-columns: minmax(0, 1fr);
		padding: 24px 20px;
	}

	.rbr__cover {
		grid-row: auto;
		justify-self: center;
	}

	.rbr__text {
		align-self: auto;
	}

	.rbr .rbr__title {
		font-size: 24px;
	}

	.rbr a.rbr__btn,
	.rbr .rbr__btn {
		justify-self: stretch;
		max-width: none;
	}
}
