/*
 * GL Product Landing Builder — frontend visual layer
 * Visual-only update: spacing, compact benefits with media, bullet fallback when icons are empty.
 */

.gl-plb-sections {
	margin: 0;
}

.gl-plb-sections .gl-home-section {
	margin-block: 32px;
}

.gl-plb-sections .gl-product-info-block,
.gl-plb-sections .gl-product-health-block {
	display: flex;
	align-items: center;
	gap: 48px;
	padding: 32px;
}

.gl-plb-sections .gl-product-info-block__media,
.gl-plb-sections .gl-product-health-block__media {
	flex: 0 0 46%;
	max-width: 46%;
}

.gl-plb-sections .gl-product-info-block__content,
.gl-plb-sections .gl-product-health-block__content {
	flex: 1;
	min-width: 0;
}

.gl-plb-sections .gl-product-info-block__content > h2,
.gl-plb-sections .gl-product-health-block__content > h2,
.gl-plb-sections .gl-product-info-block > h2,
.gl-plb-sections .gl-product-health-block > h2 {
	margin: 0 0 22px;
}

.gl-plb-sections .gl-product-info-block__text,
.gl-plb-sections .gl-product-health-block__text {
	margin: 0 0 28px;
	max-width: 640px;
}

.gl-plb-sections .gl-product-info-block__text p,
.gl-plb-sections .gl-product-health-block__text p {
	margin: 0 0 14px;
}

.gl-plb-sections .gl-product-info-block__text p:last-child,
.gl-plb-sections .gl-product-health-block__text p:last-child {
	margin-bottom: 0;
}

.gl-plb-sections .gl-product-info-block__media img,
.gl-plb-sections .gl-product-health-block__media img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 16px;
	object-fit: cover;
}

.gl-plb-sections .gl-product-info-block--media-top,
.gl-plb-sections .gl-product-health-block--media-top,
.gl-plb-sections .gl-product-info-block--media-bottom,
.gl-plb-sections .gl-product-health-block--media-bottom {
	flex-direction: column;
	align-items: stretch;
}

.gl-plb-sections .gl-product-info-block--media-top .gl-product-info-block__media,
.gl-plb-sections .gl-product-health-block--media-top .gl-product-health-block__media,
.gl-plb-sections .gl-product-info-block--media-bottom .gl-product-info-block__media,
.gl-plb-sections .gl-product-health-block--media-bottom .gl-product-health-block__media {
	flex: none;
	max-width: 100%;
	width: 100%;
}

.gl-plb-sections .gl-product-info-block--media-bottom .gl-product-info-block__media,
.gl-plb-sections .gl-product-health-block--media-bottom .gl-product-health-block__media {
	order: 2;
}

.gl-plb-sections .gl-product-info-block--dark,
.gl-plb-sections .gl-product-health-block--dark {
	background: #202631;
	color: #fff;
}

.gl-plb-sections .gl-product-info-block--soft,
.gl-plb-sections .gl-product-health-block--soft {
	background: #f7f9fb;
}

.gl-plb-sections .gl-product-info-block--accent,
.gl-plb-sections .gl-product-health-block--accent {
	background: #f3fff7;
	border: 1px solid rgba(26, 184, 104, .18);
}

/* Compact benefits inside text/media blocks */
.gl-plb-sections .gl-product-benefits,
.gl-plb-sections .gl-product-benefits--inline {
	gap: 14px !important;
	margin-top: 28px;
}

.gl-plb-sections .gl-product-info-block .gl-product-benefit {
	min-height: 72px;
	padding: 16px 18px;
	align-items: center;
	gap: 12px;
}

.gl-plb-sections .gl-product-info-block:has(.gl-product-info-block__media) .gl-product-benefit,
.gl-plb-sections .gl-product-health-block:has(.gl-product-health-block__media) .gl-product-benefit {
	min-height: 58px;
	padding: 12px 14px;
	border-radius: 14px;
	box-shadow: none;
}

.gl-plb-sections .gl-product-benefit__icon {
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.gl-plb-sections .gl-product-benefit__icon img {
	display: block;
	width: auto;
	height: auto;
	max-width: 24px;
	max-height: 24px;
	object-fit: contain;
}

/* If icon was not uploaded, show a neat bullet instead of an empty visual gap. */
.gl-plb-sections .gl-product-benefit__icon:empty::before {
	content: '';
	display: block;
	width: 7px;
	height: 7px;
	border-radius: 999px;
	background: currentColor;
	opacity: .28;
}

.gl-plb-sections .gl-product-benefit__icon:has(img)::before {
	display: none;
	content: none;
}

.gl-plb-sections .gl-product-benefit__text {
	line-height: 1.35;
}

/* Feature/media blocks: keep simple dotted list available and visually consistent. */
.gl-plb-sections .gl-product-health-list {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.gl-plb-sections .gl-product-health-list li {
	position: relative;
	min-height: 58px;
	padding: 14px 16px 14px 34px;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 10px 28px rgba(15, 23, 42, .055);
	line-height: 1.35;
}

.gl-plb-sections .gl-product-health-list li::before {
	content: '';
	position: absolute;
	left: 17px;
	top: 50%;
	width: 7px;
	height: 7px;
	border-radius: 999px;
	background: currentColor;
	opacity: .28;
	transform: translateY(-50%);
}

.gl-plb-sections .gl-product-health-icons {
	margin-top: 20px;
	gap: 14px;
}

.gl-plb-sections .gl-product-health-icons__item {
	padding: 12px 14px;
	min-height: 58px;
	border-radius: 14px;
}

.gl-plb-sections .gl-product-health-icons__item img {
	width: 28px;
	height: 28px;
	object-fit: contain;
}

.gl-plb-video iframe {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
	border-radius: 16px;
}

@media (min-width: 769px) {
	.gl-plb-sections .gl-product-info-block--no-media,
	.gl-plb-sections .gl-product-health-block--no-media {
		padding: 36px;
	}

	.gl-plb-sections .gl-product-info-block--no-media .gl-product-info-block__text,
	.gl-plb-sections .gl-product-health-block--no-media .gl-product-info-block__text {
		max-width: 760px;
	}
}

@media (max-width: 768px) {
	.gl-plb-sections .gl-home-section {
		margin-block: 22px;
	}

	.gl-plb-sections .gl-product-info-block,
	.gl-plb-sections .gl-product-health-block {
		flex-direction: column;
		align-items: stretch;
		gap: 22px;
		padding: 22px;
	}

	.gl-plb-sections .gl-product-info-block__media,
	.gl-plb-sections .gl-product-health-block__media {
		flex: none;
		max-width: 100%;
		width: 100%;
	}

	.gl-plb-sections .gl-product-info-block__content > h2,
	.gl-plb-sections .gl-product-health-block__content > h2 {
		margin-bottom: 16px;
	}

	.gl-plb-sections .gl-product-info-block__text,
	.gl-plb-sections .gl-product-health-block__text {
		margin-bottom: 22px;
	}

	.gl-plb-sections .gl-product-health-list {
		grid-template-columns: 1fr;
		gap: 10px;
		margin-top: 22px;
	}

	.gl-plb-sections .gl-product-health-list li,
	.gl-plb-sections .gl-product-info-block .gl-product-benefit,
	.gl-plb-sections .gl-product-health-block:has(.gl-product-health-block__media) .gl-product-benefit {
		min-height: 52px;
		padding-block: 12px;
	}
}

/* Option: "Без плашек" — block-level plain list with Helikon green dots. */
.gl-plb-sections .gl-product-list-plain .gl-product-health-list,
.gl-plb-sections .gl-product-list-plain .gl-product-benefits,
.gl-plb-sections .gl-product-list-plain .gl-product-benefits--inline {
	gap: 12px 28px !important;
}

.gl-plb-sections .gl-product-list-plain .gl-product-health-list li {
	min-height: 0;
	padding: 4px 0 4px 22px;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.gl-plb-sections .gl-product-list-plain .gl-product-health-list li::before {
	left: 0;
	width: 8px;
	height: 8px;
	background: var(--gl-color-accent, #2cbc63);
	opacity: 1;
}

.gl-plb-sections .gl-product-list-plain .gl-product-benefit,
.gl-plb-sections .gl-product-list-plain .gl-product-info-block .gl-product-benefit,
.gl-plb-sections .gl-product-list-plain .gl-product-health-icons__item {
	min-height: 0;
	padding: 4px 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	border: 0;
}

.gl-plb-sections .gl-product-list-plain .gl-product-benefit__icon {
	flex: 0 0 10px;
	width: 10px;
	height: 10px;
	margin-top: .45em;
	align-self: flex-start;
}

.gl-plb-sections .gl-product-list-plain .gl-product-benefit__icon img {
	display: none;
}

.gl-plb-sections .gl-product-list-plain .gl-product-benefit__icon::before,
.gl-plb-sections .gl-product-list-plain .gl-product-benefit__icon:empty::before,
.gl-plb-sections .gl-product-list-plain .gl-product-benefit__icon:has(img)::before {
	display: block;
	content: '';
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: var(--gl-color-accent, #2cbc63);
	opacity: 1;
}

.gl-plb-sections .gl-product-list-plain .gl-product-benefit__text,
.gl-plb-sections .gl-product-list-plain .gl-product-health-icons__item span {
	line-height: 1.45;
}
