/**
 * ACF block: CTA-блок (acf/cta-block).
 *
 * Type 1 — white card; green title + description left, button right.
 * Type 2 — two-tone: dark-green panel (badge + label + title) + white panel
 *          (description + button). Stacks on mobile.
 * Type 3 — white card; badge + label on top; black title + description left,
 *          button right.
 *
 * Button always targets the order page and must beat entry-content's link
 * styling, so its rules are scoped `.cta-block .cta-block__btn` (higher
 * specificity than `.entry-content a`).
 */

.cta-block {
	overflow: hidden;
	border: 1px solid var(--color-hub);
	border-radius: var(--radius-md);
	background: var(--color-white);
}

/* ---------- Shared pieces ---------- */

.cta-block__head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
}

.cta-block__badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 14px;
	border-radius: var(--radius-pill);
	font-family: var(--font-family);
	font-size: 13px;
	font-weight: var(--font-weight-medium);
	line-height: 1.2;
	color: var(--color-white);
}

.cta-block__badge--red {
	background: #f1553d;
}

.cta-block__badge--green {
	background: var(--color-hub);
}

.cta-block__label {
	font-family: var(--font-family);
	font-size: 16px;
	font-weight: var(--font-weight-regular);
	line-height: 1.2;
	color: var(--color-hub);
}

.cta-block__title {
	font-family: var(--font-family-display);
	font-size: 24px;
	font-weight: var(--font-weight-bold);
	line-height: 1.2;
	color: var(--color-black);
}

.cta-block__text {
	font-family: var(--font-family);
	font-size: 15px;
	font-weight: var(--font-weight-regular);
	line-height: 1.45;
	color: #545454;
}

.cta-block .cta-block__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 40px;
	padding: 4px 34px;
	border-radius: var(--radius-pill);
	background: var(--color-hub);
	color: var(--color-white);
	font-family: var(--font-family);
	font-size: 16px;
	font-weight: var(--font-weight-medium);
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color var(--transition-hover);
}

.cta-block .cta-block__btn:hover,
.cta-block .cta-block__btn:focus-visible {
	background: #024e33;
}

/* ---------- Type 1 ---------- */
.cta-block--type-1 {
	display: flex;
	align-items: center;
	gap: 30px;
	padding: 35px 40px;
}

.cta-block--type-1 .cta-block__content {
	flex: 1;
	min-width: 0;
}

.cta-block--type-1 .cta-block__title,
.cta-block--type-1 .cta-block__text {
	max-width: 370px;
}

.cta-block--type-1 .cta-block__title {
	margin-bottom: 14px;
	color: var(--color-hub);
}

.cta-block--type-1 .cta-block__cta {
	flex-shrink: 0;
}

/* ---------- Type 2 ---------- */
.cta-block--type-2 {
	display: flex;
	align-items: stretch;
}

.cta-block--type-2 .cta-block__panel {
	display: flex;
	flex: 1;
	min-width: 0;
	flex-direction: column;
	justify-content: center;
	padding: 35px 40px;
}

.cta-block--type-2 .cta-block__panel--dark {
	background: var(--color-hub);
}

.cta-block--type-2 .cta-block__panel--light {
	gap: 22px;
	background: var(--color-white);
}

.cta-block--type-2 .cta-block__title {
	max-width: 350px;
	font-size: 28px;
	color: var(--color-white);
}

.cta-block--type-2 .cta-block__label {
	color: var(--color-white);
}

.cta-block--type-2 .cta-block__text {
	font-size: 20px;
	line-height: 1.35;
	color: var(--color-black);
}

.cta-block--type-2 .cta-block__btn {
	align-self: flex-start;
}

/* ---------- Type 3 ---------- */
.cta-block--type-3 {
	padding: 35px 40px;
}

.cta-block--type-3 .cta-block__row {
	display: flex;
	align-items: center;
	gap: 30px;
}

.cta-block--type-3 .cta-block__content {
	flex: 1;
	min-width: 0;
}

.cta-block--type-3 .cta-block__title,
.cta-block--type-3 .cta-block__text {
	max-width: 425px;
}

.cta-block--type-3 .cta-block__title {
	margin-bottom: 14px;
	color: var(--color-black);
}

.cta-block--type-3 .cta-block__cta {
	flex-shrink: 0;
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
	.cta-block--type-1 {
		flex-direction: column;
		align-items: stretch;
		gap: 20px;
		padding: 25px 20px;
	}

	.cta-block--type-2 {
		flex-direction: column;
	}

	.cta-block--type-2 .cta-block__panel {
		padding: 25px 20px;
	}

	.cta-block--type-2 .cta-block__title {
		font-size: 22px;
	}

	.cta-block--type-2 .cta-block__text {
		font-size: 16px;
	}

	.cta-block--type-3 {
		padding: 25px 20px;
	}

	.cta-block--type-3 .cta-block__row {
		flex-direction: column;
		align-items: stretch;
		gap: 20px;
	}

	.cta-block--type-1 .cta-block__title,
	.cta-block--type-3 .cta-block__title {
		font-size: 20px;
	}

	/* Full-width button on mobile for every type. */
	.cta-block .cta-block__btn {
		width: 100%;
	}

	.cta-block--type-2 .cta-block__btn {
		align-self: stretch;
	}
}

/* Wider side padding on the button on large screens. */
@media (min-width: 1200px) {
	.cta-block .cta-block__btn {
		padding-left: 60px;
		padding-right: 60px;
	}
}
