/* ==========================================================================
   Sekcja: O firmie (Figma 1:325)
   ========================================================================== */
.section--about {
	--about-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
	--about-offset: 24px;
}

.about {
	display: grid;
	gap: 48px;
}

.about__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
	min-width: 0;
}

.section--about .about__head {
	margin-bottom: 0;
}

.about__text {
	font-size: var(--fs-lead);
	line-height: 1.625; /* 29.25px */
	color: var(--color-text-body);
}

.about__text > :last-child {
	margin-bottom: 0;
}

.about__text p {
	margin: 0 0 24px;
}

.about__text strong,
.about__text b {
	font-weight: 700;
}

.about__button {
	gap: 12px;
}

.about__button-icon {
	width: 7.5px;
	height: 12px;
	margin-top: 1px;
}

/* Mozaika: dwie kolumny, prawa przesunięta w dół */
.about__media {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: start;
	gap: 16px;
}

.about__col {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.about__media--3 .about__col--left,
.about__media--4 .about__col--left {
	padding-bottom: var(--about-offset);
}

.about__col--right {
	padding-top: var(--about-offset);
}

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

.about__media--1 .about__col--left,
.about__media--2 .about__col--right {
	padding-top: 0;
}

.about__img {
	margin: 0;
	aspect-ratio: 280 / 192;
	border-radius: var(--radius-lg);
	box-shadow: var(--about-shadow);
	overflow: hidden;
	background: var(--color-bg-light);
}

.about__img--tall {
	aspect-ratio: 280 / 256;
}

/* Jedno zdjęcie w kolumnie — pełna wysokość tak jak dwa kadry w Figmie */
.about__media--1 .about__img,
.about__media--2 .about__img {
	aspect-ratio: 280 / 320;
}

.about__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (min-width: 768px) {
	.section--about {
		--about-offset: 48px;
	}
}

@media (min-width: 1024px) {
	.about {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: center;
		gap: 80px;
	}

	.about--no-media {
		grid-template-columns: minmax(0, 1fr);
		max-width: 768px;
	}

	.about__media--2 .about__col--right {
		padding-top: var(--about-offset);
	}
}

/* ==========================================================================
   Liczby pod tekstem (opcjonalne) — Figma 107:269: 40/60 Lexend 900 w akcencie, podpis 16/24
   ========================================================================== */
.about__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem 2.5rem;
	margin: 0;
	padding: 1rem 0 0;
	list-style: none;
}

.about__stat {
	display: flex;
	flex-direction: column;
	min-width: 135px;
}

.about__stat-value {
	font-family: var(--font-heading);
	font-size: clamp(2rem, 1.2vw + 1.5rem, 2.5rem);
	font-weight: 900;
	line-height: 1.5;
	letter-spacing: -0.01em;
	color: var(--color-accent);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.about__stat-label {
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.5;
	color: var(--color-text-muted);
}

/* ==========================================================================
   Wariant „page” — podstrona O nas (Figma 107:257)
   Sekcja 120 px w pionie, H2 48/60 bez wielkich liter, tekst 18/28.8, bloki co ~51 px,
   mozaika w szachownicę: lewa 240 + 320, prawa (przesunięta o 40) 320 + 240.
   ========================================================================== */
.section--about:has(.about--page) {
	padding-block: clamp(4rem, 8.5vw, 7.5rem);
}

.about--page .about__content {
	gap: 30px;
}

.about--page .section-head__heading {
	font-size: clamp(2rem, 2.4vw + 1.25rem, 3rem);
	line-height: 1.25;
	letter-spacing: -0.0273em; /* jak H1 hero — „Działamy od 2018 roku” mieści się w 576 px */
	text-transform: none;
	text-wrap: balance;
}

.about--page .about__text {
	line-height: 1.6;
}

.about--page .about__text p {
	margin-bottom: clamp(1.75rem, 3vw, 3.2rem);
}

.about--page .about__text > :last-child {
	margin-bottom: 0;
}

.about--page .about__img {
	aspect-ratio: 280 / 240;
}

.about--page .about__img--tall {
	aspect-ratio: 280 / 320;
}

@media (min-width: 768px) {
	.section--about:has(.about--page) {
		--about-offset: 40px;
	}
}

/* ==========================================================================
   Animacje wejścia (silnik: assets/js/reveal.js)
   Nagłówek animuje optitek_section_head; akapity (kaskada 100ms) → przycisk
   wjeżdżają z lewej z rozmyciem; zdjęcia mozaiki: miękki fade + blur figury
   (data-reveal="fade") w kolejności galerii 1→4 (110ms) z wewnętrznym
   zoom-out kadru 1.08→1; kolumny: delikatna paralaksa w przeciwnych kierunkach (≥1024px).
   ========================================================================== */
.about__button-wrap {
	display: flex;
}

.has-reveal .about__text > * {
	opacity: 0;
	transform: translate3d(calc(var(--reveal-distance-x) * -1), 0, 0);
	filter: blur(var(--reveal-blur));
	transition:
		opacity calc(var(--reveal-duration) * 0.8) var(--ease-soft),
		transform var(--reveal-duration) var(--ease-out),
		filter var(--reveal-duration) var(--ease-soft);
}

.has-reveal .about__text.is-revealed > * {
	opacity: 1;
	transform: none;
	filter: none;
}

.has-reveal .about__text > :nth-child(1) { transition-delay: 75ms; }
.has-reveal .about__text > :nth-child(2) { transition-delay: 150ms; }
.has-reveal .about__text > :nth-child(3) { transition-delay: 225ms; }
.has-reveal .about__text > :nth-child(n+4) { transition-delay: 300ms; }

/* Kadr w figurze startuje lekko przybliżony i oddala się razem z pojawieniem figury. */
.has-reveal .about__img[data-reveal] img {
	transform: scale(1.08);
	transition: transform 1.4s var(--ease-out);
	transition-delay: var(--reveal-delay, 0ms);
}

.has-reveal .about__img[data-reveal].is-revealed img {
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.has-reveal .about__text > *,
	.has-reveal .about__img[data-reveal] img {
		opacity: 1 !important;
		transform: none !important;
		filter: none !important;
		transition: none !important;
	}
}
