/*
 * Contact section (front page and /kontaktid/): address, phone and e-mail rows,
 * the map, and the orange leaf and berry line art behind them.
 * Same Elementor elements on both pages.
 *
 * Phones only. On small screens the icons are 40px round badges next to bold
 * text, long values such as the e-mail address wrap instead of widening the
 * page, and the leaf art is drawn behind the content, partly off the right edge.
 * Nothing here applies above 767px, so the desktop and tablet layout stays
 * exactly as designed.
 *
 * --vk-contact-leaves (the leaf and berry SVG) is set from PHP, see
 * vk_el_enqueue_waves().
 */

@media (max-width: 767px) {
	/* Section: keep inside the screen, clip the art that runs off the edge. */
	.elementor .elementor-element-26bc0849 {
		box-sizing: border-box;
		max-width: 100%;
		min-width: 0;
		overflow-x: clip;
	}

	/*
	 * Background art. One SVG holds a leaf sprig (upper right) and a berry
	 * cluster (lower left); each pseudo element shows one of the two.
	 * Absolute, so they take no part in the section's flex layout.
	 */
	.elementor .elementor-element-26bc0849::before,
	.elementor .elementor-element-26bc0849::after {
		content: "";
		position: absolute;
		left: auto; /* Elementor sets left: 0 on the section's ::before. */
		bottom: auto;
		z-index: 0;
		pointer-events: none;
		background-image: var(--vk-contact-leaves, none);
		background-repeat: no-repeat;
		background-size: 192px 224px;
	}

	/* Leaf sprig, top right, running off the edge. */
	.elementor .elementor-element-26bc0849::before {
		top: 0;
		right: -28px;
		width: 110px;
		height: 110px;
		background-position: -76px -28px;
	}

	/* Berries, right side, beside the phone and e-mail rows. */
	.elementor .elementor-element-26bc0849::after {
		top: 292px;
		right: 8px;
		width: 90px;
		height: 86px;
		background-position: -20px -134px;
	}

	/* Rows: round icon + text, vertically centred. */
	.elementor .elementor-element-3ada6884,
	.elementor .elementor-element-2a004b1d,
	.elementor .elementor-element-517d3a3e {
		box-sizing: border-box;
		max-width: 100%;
		min-width: 0;
		gap: 14px;
		align-items: center;
	}

	/* Icon wrapper: a 40px circle, never squeezed by long text. */
	.elementor .elementor-element-3ada6884 > :first-child,
	.elementor .elementor-element-2a004b1d > :first-child,
	.elementor .elementor-element-517d3a3e > :first-child {
		flex: 0 0 40px;
		width: 40px;
		height: 40px;
		min-width: 40px;
	}

	.elementor .elementor-element-3ada6884 img,
	.elementor .elementor-element-2a004b1d img,
	.elementor .elementor-element-517d3a3e img {
		display: block;
		width: 40px;
		height: 40px;
		max-width: none;
		flex: 0 0 auto;
	}

	/* Text: bold, wraps instead of overflowing. */
	.elementor .elementor-element-3ada6884 .vk-body-l,
	.elementor .elementor-element-2a004b1d .vk-body-l,
	.elementor .elementor-element-517d3a3e .vk-body-l {
		min-width: 0;
		max-width: 100%;
		margin: 0;
		font-size: clamp(14px, 4.1vw, 17px);
		font-weight: 700;
		line-height: 1.35;
		overflow-wrap: anywhere;
	}

	.elementor .elementor-element-3ada6884 .vk-body-l a,
	.elementor .elementor-element-2a004b1d .vk-body-l a,
	.elementor .elementor-element-517d3a3e .vk-body-l a {
		font-size: inherit;
		font-weight: inherit;
		overflow-wrap: anywhere;
	}
}
