/**
 * About Us page: існуючий контент + фото (Featured Image) в кінці.
 * No LESS compilation.
 */

.about-page-wrap {
	margin-bottom: 2rem;
}

.about-page-content .entry-header {
	margin-bottom: 0.75rem;
}

.about-page-content .entry-title {
	font-size: 36px;
	line-height: 1.15;
	margin: 0 0 0.25rem 0;
	color: #201f1f;
	letter-spacing: -0.01em;
}

.about-page-content .entry-content {
	margin-bottom: 0;
}

.about-custom {
	margin-top: 0.5rem;
}

.about-hybrid {
	display: block;
}

.about-custom .about-hybrid__main,
.about-custom .about-hybrid__side {
	min-width: 0;
}

.about-custom {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr);
	gap: 32px;
	align-items: start;
}

.about-structured__heading {
	margin: 0 0 16px 0;
	font-size: 42px;
	line-height: 1.05;
	font-weight: 600;
	color: #201f1f;
	letter-spacing: -0.02em;
}

/* Structured page: avoid huge default margins from builder */
.about-rest p:first-child,
.about-structured__text p:first-child {
	margin-top: 0;
}

.about-rest p:last-child,
.about-structured__text p:last-child {
	margin-bottom: 0;
}

/* Фото (команда / виробництво) — додається в адмінці як Featured Image */
.about-photo {
	margin-top: 1.5rem;
}

.about-photo-inner {
	border-radius: 12px;
	overflow: hidden;
	background: #f0f0f0;
	max-height: 360px;
}

.about-photo-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (max-width: 767px) {
	.about-page-content .entry-title {
		font-size: 24px;
	}

	.about-photo {
		margin-top: 1rem;
	}

	.about-photo-inner {
		max-height: 280px;
	}
}

/* 3 blocks: icon (left) + text (right) */
.about-structured {
	margin-top: 0;
}

.about-structured__block {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 14px 14px;
	border: 1px solid #eeeeee;
	border-radius: 14px;
	background: #ffffff;
	margin-bottom: 10px;
}

.about-structured__block:last-child {
	margin-bottom: 0;
}

.about-structured__icon {
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f5f5f5;
	border: 1px solid #e6e6e6;
	border-radius: 10px;
	color: #201f1f;
	font-size: 16px;
}

.about-structured__body {
	min-width: 0;
	flex: 1;
}

.about-structured__title {
	margin: 0 0 6px 0;
	font-size: 22px;
	line-height: 1.3;
	color: #201f1f;
	font-weight: 600;
}

.about-structured__text {
	font-size: 14px;
	line-height: 1.55;
	color: #606060;
}

.about-structured__text p:last-child {
	margin-bottom: 0;
}

.about-structured__text p:first-child {
	margin-top: 0;
}

.about-structured__text p {
	margin: 0 0 8px 0;
}

.about-structured__text p:last-child {
	margin-bottom: 0;
}

@media (max-width: 767px) {
	.about-structured__block {
		flex-direction: column;
		gap: 10px;
	}
}

/* Rest of content (kept from the editor), avoid huge gaps */
.about-rest {
	margin-top: 0.25rem;
	font-size: 16px;
	line-height: 1.72;
	color: #4f4f4f;
	max-width: none;
	word-break: normal;
	overflow-wrap: anywhere;
}

.about-rest > *:first-child {
	margin-top: 0;
}

.about-rest p {
	margin-bottom: 0.9rem;
}

@media (max-width: 991px) {
	.about-custom {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	.about-page-content .entry-title {
		font-size: 32px;
	}
	.about-structured__heading {
		font-size: 34px;
	}
	.about-rest {
		font-size: 16px;
		max-width: none;
		line-height: 1.68;
	}
	.about-structured__title {
		font-size: 20px;
	}
}

@media (max-width: 767px) {
	.about-page-content .entry-title {
		font-size: 28px;
	}
	.about-structured__heading {
		font-size: 28px;
	}
	.about-rest {
		font-size: 15px;
		line-height: 1.62;
	}
	.about-structured__title {
		font-size: 18px;
	}
}
