/**
 * Blok „Vitoul about“ – styly sdílené editorem i frontendem.
 *
 * Rozměry podle Figmy (frame `about-wrapper`, 1440 × 616):
 * odsazení sekce 80, karta s odsazením 48 a rádiusem 24,
 * mezera mezi sloupci 48, fotka 480 × 360 s rádiusem 16.
 */

.vm-about {
	background-color: var( --vm-color-teal-bg );
	padding: var( --vm-space-3xl ) var( --vm-gutter );
	width: 100%;
}

.vm-about--white {
	background-color: var( --vm-color-white );
}

.vm-about__card {
	align-items: center;
	background-color: var( --vm-color-white );
	border: 1px solid var( --vm-color-border-light );
	border-radius: var( --vm-radius-xl );
	box-shadow: 0 16px 32px rgba( 30, 136, 168, 0.03 );
	display: flex;
	gap: var( --vm-space-2xl );
	margin: 0 auto;
	max-width: var( --vm-container );
	padding: var( --vm-space-2xl );
}

/* Fotka může být i vlevo – přehodí se jen pořadí sloupců. */
.vm-about--image-left .vm-about__card {
	flex-direction: row-reverse;
}

/* ----------------------------------------------------------------------
 * Textový sloupec
 * -------------------------------------------------------------------- */

.vm-about__story {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: var( --vm-space-lg );
	min-width: 0;
}

.vm-about__icon {
	align-items: center;
	background-color: var( --vm-color-teal-bg );
	border-radius: var( --vm-radius-lg );
	display: flex;
	flex-shrink: 0;
	height: 56px;
	justify-content: center;
	width: 56px;
}

.vm-about__icon .vm-icon {
	height: 28px;
	width: 28px;
}

/* Ikona v kartě je v návrhu tmavší než zbytek sady. */
.vm-about__icon .vm-icon__primary.vm-icon--fill {
	fill: var( --vm-color-text-heading );
}

.vm-about__icon-image {
	display: block;
	height: 28px;
	object-fit: contain;
	width: 28px;
}

.vm-about__title-stack {
	display: flex;
	flex-direction: column;
	gap: var( --vm-space-sm );
}

/* Heading/H2 – 28 Montserrat Bold, barva text/heading */
.vm-about__title {
	color: var( --vm-color-text-heading );
	font-family: var( --vm-font-heading );
	font-size: var( --vm-size-h2 );
	font-weight: var( --vm-weight-bold );
	line-height: var( --vm-leading-tight );
	margin: 0;
	text-transform: uppercase;
}

/* Body/Medium Bold – 15 Mulish Medium (skutečná váha 500, jak žádá Figma) */
.vm-about__subtitle {
	color: var( --vm-color-teal );
	font-family: var( --vm-font-body );
	font-size: var( --vm-size-body-md );
	font-weight: var( --vm-weight-medium );
	line-height: var( --vm-leading-none );
	margin: 0;
}

/* Body/Medium – 15/1.6, barva neutral/gray-700 */
.vm-about__text {
	color: var( --vm-color-gray-700 );
	font-family: var( --vm-font-body );
	font-size: var( --vm-size-body-md );
	font-weight: var( --vm-weight-regular );
	line-height: var( --vm-leading-normal );
	margin: 0;
}

/* ----------------------------------------------------------------------
 * Fotografie
 * -------------------------------------------------------------------- */

.vm-about__media {
	border: 1px solid var( --vm-color-border-light );
	border-radius: var( --vm-radius-lg );
	flex-shrink: 0;
	overflow: hidden;
	width: 480px;
}

.vm-about__image,
.vm-about__placeholder {
	aspect-ratio: 4 / 3;
	display: block;
	height: 100%;
	object-fit: cover;
	object-position: center;
	width: 100%;
}

.vm-about__placeholder {
	background-color: var( --vm-color-teal-bg );
}

/* ----------------------------------------------------------------------
 * Responzivita
 * -------------------------------------------------------------------- */

@media ( max-width: 1100px ) {

	.vm-about__media {
		width: 380px;
	}
}

@media ( max-width: 900px ) {

	.vm-about {
		padding: var( --vm-space-2xl ) var( --vm-gutter );
	}

	/* Pod sebe – fotka jde vždy nad text, ať je nastavená kdekoliv. */
	.vm-about__card,
	.vm-about--image-left .vm-about__card {
		flex-direction: column-reverse;
		gap: var( --vm-space-xl );
		padding: var( --vm-space-lg );
	}

	.vm-about__media {
		width: 100%;
	}
}

@media ( max-width: 680px ) {

	/*
	 * Ruční zalomení nadpisu dává smysl jen na širokém řádku –
	 * na mobilu by trhalo text na náhodných místech.
	 */
	.vm-about__title br {
		display: none;
	}
}
