/* AndrewDesign Contact Widget — style lokalne, bez bibliotek zewnętrznych. */
.adcp {
	--adcp-bg: var(--color-surface, #fff);
	--adcp-surface-muted: var(--color-surface-muted, #f1f5f7);
	--adcp-ink: var(--color-ink, #142535);
	--adcp-body: var(--color-body, #465969);
	--adcp-brand: var(--color-brand, #173d57);
	--adcp-brand-hover: var(--color-brand-hover, #0f3048);
	--adcp-border: var(--color-border, #dce4e9);
	--adcp-focus: var(--color-focus, #0b78b9);
	--adcp-on-dark: var(--color-on-dark, #f8fafc);
	--adcp-accent: #c99862;
	--adcp-bottom-offset: 20px;
	--adcp-side-offset: 20px;
	--adcp-layer: 900;
	position: fixed;
	z-index: var(--adcp-layer);
	right: max(var(--adcp-side-offset), env(safe-area-inset-right));
	bottom: calc(var(--adcp-bottom-offset) + env(safe-area-inset-bottom));
	width: min(23.375rem, calc(100vw - 2 * var(--adcp-side-offset)));
	color: var(--adcp-ink);
	font-family: var(--font-body, "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
	font-size: 0.875rem;
	font-style: normal;
	font-weight: 400;
	line-height: 1.5;
	isolation: isolate;
	pointer-events: none;
	-webkit-font-smoothing: antialiased;
}

.adcp.adcp--left {
	right: auto;
	left: max(var(--adcp-side-offset), env(safe-area-inset-left));
}

.adcp,
.adcp *,
.adcp *::before,
.adcp *::after {
	box-sizing: border-box;
}

.adcp button,
.adcp a {
	font: inherit;
}

.adcp button {
	color: inherit;
	cursor: pointer;
}

.adcp a {
	text-decoration: none;
}

.adcp svg {
	display: block;
	max-width: none;
}

.adcp [hidden] {
	display: none !important;
}

.adcp a:focus-visible,
.adcp button:focus-visible {
	outline: 3px solid var(--adcp-focus);
	outline-offset: 3px;
}

.adcp__status {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.adcp__launcher {
	position: relative;
	display: none;
	align-items: flex-end;
	width: max-content;
	max-width: 100%;
	height: 7rem;
	padding: 0;
	margin-left: auto;
	border: 0;
	background: transparent;
	filter: drop-shadow(0 0.75rem 0.9375rem rgba(20, 37, 53, 0.14));
	pointer-events: auto;
	transition: transform 190ms ease, filter 190ms ease;
}

.adcp--enhanced .adcp__launcher {
	display: flex;
}

.adcp--left .adcp__launcher {
	margin-right: auto;
	margin-left: 0;
}

.adcp__launcher:hover {
	transform: translateY(-0.1875rem);
	filter: drop-shadow(0 0.875rem 1rem rgba(20, 37, 53, 0.22));
}

.adcp__launcher-copy {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 10rem;
	padding: 0.8125rem 1.25rem 0.875rem;
	margin: 0 -0.75rem 0.8125rem 0;
	color: var(--adcp-on-dark);
	text-align: left;
	background: var(--adcp-brand);
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 1rem 0.5rem 0.5rem 1rem;
	box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 0.4375rem 1rem rgba(16, 42, 61, 0.14);
}

.adcp--left .adcp__launcher-copy {
	order: 2;
	margin-right: 0;
	margin-left: -0.75rem;
	text-align: right;
	border-radius: 0.5rem 1rem 1rem 0.5rem;
}

.adcp__launcher-overline,
.adcp__eyebrow,
.adcp__panel-footer {
	font-family: var(--font-body, "Inter", system-ui, sans-serif);
	text-transform: uppercase;
}

.adcp__launcher-overline {
	color: #dce7ec;
	font-size: 0.625rem;
	font-weight: 800;
	letter-spacing: 0.16em;
}

.adcp__launcher-copy strong {
	font-size: 0.875rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	white-space: nowrap;
}

.adcp__mascot-wrap {
	position: relative;
	z-index: 2;
	display: block;
	flex: none;
	width: 5.8125rem;
	height: 6.9375rem;
	background: radial-gradient(circle at 45% 35%, #f8fafb 0%, #f3e7da 62%, #dce4e9 100%);
	border: 2px solid rgba(255, 255, 255, 0.9);
	border-radius: 1.5rem 1.5rem 1.125rem 1.125rem;
	box-shadow: 0 0.3125rem 1.125rem rgba(20, 37, 53, 0.12);
}

.adcp--left .adcp__mascot-wrap {
	order: 1;
}

.adcp__mascot-svg {
	position: absolute;
	bottom: -0.0625rem;
	left: -0.4375rem;
	width: 6.5rem;
	height: 7.6875rem;
	overflow: visible;
}

.adcp__launcher-dot {
	position: absolute;
	z-index: 3;
	right: -0.25rem;
	bottom: 0.625rem;
	width: 0.9375rem;
	height: 0.9375rem;
	background: var(--adcp-accent);
	border: 3px solid var(--adcp-bg);
	border-radius: 50%;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.adcp--left .adcp__launcher-dot {
	right: auto;
	left: -0.25rem;
}

.adcp__mascot-spark {
	position: absolute;
	z-index: 4;
	width: 0.3125rem;
	height: 0.3125rem;
	background: var(--adcp-bg);
	border-radius: 50%;
}

.adcp__mascot-spark--a {
	top: 0.5625rem;
	left: 0.375rem;
}

.adcp__mascot-spark--b {
	top: 1.3125rem;
	right: 0.5rem;
	width: 0.1875rem;
	height: 0.1875rem;
}

.adcp__hint {
	position: absolute;
	z-index: 4;
	right: 1.375rem;
	bottom: 7.625rem;
	display: flex;
	align-items: center;
	min-width: 13.875rem;
	max-width: min(17.8125rem, 100%);
	padding: 0.25rem 0.3125rem 0.25rem 0.9375rem;
	background: var(--adcp-bg);
	border: 1px solid var(--adcp-border);
	border-radius: 0.9375rem 0.9375rem 0.25rem;
	box-shadow: 0 0.875rem 2.625rem rgba(16, 42, 61, 0.18);
	pointer-events: auto;
}

.adcp__hint::after {
	position: absolute;
	right: 1.5rem;
	bottom: -0.4375rem;
	width: 0.75rem;
	height: 0.75rem;
	content: "";
	background: var(--adcp-bg);
	border-right: 1px solid var(--adcp-border);
	border-bottom: 1px solid var(--adcp-border);
	transform: rotate(45deg);
}

.adcp--left .adcp__hint {
	right: auto;
	left: 1.375rem;
	border-radius: 0.9375rem 0.9375rem 0.9375rem 0.25rem;
}

.adcp--left .adcp__hint::after {
	right: auto;
	left: 1.5rem;
}

.adcp__hint-open {
	display: flex;
	flex: 1;
	gap: 0.4375rem;
	align-items: center;
	justify-content: space-between;
	min-height: 2.75rem;
	padding: 0.4375rem 0.25rem;
	font-size: 0.8125rem;
	font-weight: 700;
	text-align: left;
	background: transparent;
	border: 0;
}

.adcp__hint-open span {
	color: var(--adcp-brand);
	font-size: 1.0625rem;
}

.adcp__hint-close,
.adcp__close {
	display: grid;
	flex: none;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0.625rem;
	color: #142535;
	background: #e7edf1;
	border: 1px solid #cad6df;
	border-radius: 50%;
	transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.adcp__hint-close {
	font-size: 1.25rem;
	line-height: 1;
}

.adcp__panel {
	position: absolute;
	right: 0;
	bottom: 7.875rem;
	width: 100%;
	max-height: calc(100dvh - var(--adcp-bottom-offset) - env(safe-area-inset-bottom) - 8.875rem);
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--adcp-bg);
	border: 1px solid var(--adcp-border);
	border-radius: 1.25rem;
	box-shadow: 0 1.625rem 4.375rem rgba(16, 42, 61, 0.23), 0 0.25rem 1rem rgba(16, 42, 61, 0.08);
	pointer-events: auto;
	transform-origin: bottom right;
	scrollbar-gutter: stable;
}

.adcp--left .adcp__panel {
	right: auto;
	left: 0;
	transform-origin: bottom left;
}

.adcp__panel-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.25rem 0;
	background: linear-gradient(140deg, #f8fafb, #f1f5f7 72%, #fff);
}

.adcp__eyebrow {
	display: inline-flex;
	gap: 0.5rem;
	align-items: center;
	color: var(--adcp-body);
	font-size: 0.625rem;
	font-weight: 800;
	letter-spacing: 0.13em;
}

.adcp__eyebrow-dot {
	width: 0.4375rem;
	height: 0.4375rem;
	background: var(--adcp-accent);
	border-radius: 50%;
	box-shadow: 0 0 0 4px rgba(201, 152, 98, 0.18);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--adcp-accent), transparent 82%);
}

.adcp__close:hover,
.adcp__hint-close:hover {
	color: #0b263b;
	background: #d6e2ea;
	border-color: #9aafbd;
}

.adcp__close-mark {
	display: block;
	color: #142535;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 1.875rem;
	font-weight: 400;
	line-height: 1;
	transform: translateY(-1px);
}

/* Rysowanie ikon bez polegania na globalnych regułach motywu. */
.adcp__cta-arrow svg,
.adcp__alternatives svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.adcp__cta-icon svg {
	fill: currentColor;
}

.adcp__panel-hero {
	position: relative;
	padding: 1rem 1.5rem 1.4375rem;
	background: linear-gradient(150deg, #f8fafb 10%, #f1f5f7 76%, #fff);
}

.adcp__hero-symbol {
	position: absolute;
	top: 0.75rem;
	right: 1.3125rem;
	display: grid;
	place-items: center;
	width: 3.5625rem;
	height: 3.5625rem;
	color: var(--adcp-brand);
	background: #f3e7da;
	background: color-mix(in srgb, var(--adcp-accent), white 72%);
	border-radius: 1.1875rem;
	transform: rotate(8deg);
}

.adcp__hero-symbol span {
	font-size: 2.625rem;
	line-height: 1;
}

.adcp__kicker {
	margin: 0.0625rem 4.0625rem 0.5625rem 0;
	color: var(--adcp-brand);
	font-size: 0.625rem;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: 0.09em;
}

.adcp__title {
	max-width: 17.5rem;
	margin: 0 2.1875rem 0.6875rem 0;
	color: var(--adcp-ink);
	font-family: var(--font-heading, "Manrope", system-ui, sans-serif);
	font-size: clamp(1.375rem, 5vw, 1.625rem);
	font-weight: 800;
	line-height: 1.14;
	letter-spacing: -0.04em;
	text-wrap: balance;
}

.adcp__description {
	max-width: 19.375rem;
	margin: 0;
	color: var(--adcp-body);
	font-size: 0.8125rem;
	line-height: 1.65;
}

.adcp__panel-actions {
	padding: 1.25rem 1.375rem 1.125rem;
}

.adcp__cta {
	display: flex;
	gap: 0.75rem;
	align-items: center;
	width: 100%;
	min-height: 3.5rem;
	padding: 0.625rem 0.875rem;
	color: #fff;
	font-size: 0.875rem;
	font-weight: 750;
	line-height: 1.2;
	background: #148453;
	border-radius: 0.75rem;
	box-shadow: 0 0.5625rem 1.375rem rgba(11, 125, 75, 0.18);
	transition: transform 190ms ease, background 190ms ease, box-shadow 190ms ease;
}

.adcp__cta:hover {
	color: #fff;
	background: #0f7048;
	box-shadow: 0 0.75rem 1.5rem rgba(11, 125, 75, 0.24);
	transform: translateY(-0.125rem);
}

.adcp__cta-icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 2.125rem;
	height: 2.125rem;
	background: rgba(255, 255, 255, 0.17);
	border-radius: 0.625rem;
}

.adcp__cta-icon svg {
	width: 1.375rem;
	height: 1.375rem;
}

.adcp__cta-arrow {
	display: grid;
	place-items: center;
	margin-left: auto;
}

.adcp__cta-arrow svg {
	width: 1.125rem;
	height: 1.125rem;
}

.adcp__alternatives {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	justify-content: center;
	padding-top: 1rem;
}

.adcp__alternatives a {
	display: inline-flex;
	gap: 0.3125rem;
	align-items: center;
	min-height: 2.75rem;
	color: var(--adcp-body);
	font-size: 0.75rem;
	font-weight: 650;
	border-bottom: 1px solid transparent;
}

.adcp__alternatives a:hover {
	color: var(--adcp-brand);
	border-bottom-color: currentcolor;
}

.adcp__alternatives svg {
	width: 0.9375rem;
	height: 0.9375rem;
}

.adcp__panel-footer {
	display: flex;
	gap: 0.625rem;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	color: #5e6e79;
	font-size: 0.625rem;
	font-weight: 850;
	letter-spacing: 0.13em;
	border-top: 1px solid var(--adcp-border);
}

.adcp__panel-footer [aria-hidden="true"] {
	color: var(--adcp-brand);
}

.adcp__noscript {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.625rem 1rem;
	margin-left: auto;
	color: #fff;
	font-weight: 700;
	background: #148453;
	border-radius: 0.75rem;
	pointer-events: auto;
}

.adcp--left .adcp__noscript {
	margin-right: auto;
	margin-left: 0;
}

@media (prefers-reduced-motion: no-preference) {
	.adcp--animated .adcp__mascot-svg {
		animation: adcp-float 4s ease-in-out infinite;
	}

	.adcp--animated .adcp__painter-arm {
		transform-origin: 74px 90px;
		animation: adcp-paint 5.5s ease-in-out infinite;
	}

	.adcp--animated .adcp__painter-eyes {
		transform-origin: center 53px;
		animation: adcp-blink 7s linear infinite;
	}

	.adcp--animated .adcp__mascot-spark--a {
		animation: adcp-twinkle 2.5s ease-in-out infinite;
	}

	.adcp--animated .adcp__mascot-spark--b {
		animation: adcp-twinkle 3s 1s ease-in-out infinite;
	}

	.adcp__panel:not([hidden]),
	.adcp__hint:not([hidden]) {
		animation: adcp-in 270ms cubic-bezier(0.18, 0.75, 0.2, 1) both;
	}

	@keyframes adcp-float {
		0%,
		100% { transform: translateY(0); }
		50% { transform: translateY(-3px); }
	}

	@keyframes adcp-paint {
		0%,
		12%,
		32%,
		100% { transform: rotate(0deg); }
		18%,
		26% { transform: rotate(-10deg); }
	}

	@keyframes adcp-blink {
		0%,
		45%,
		47%,
		95%,
		97%,
		100% { transform: scaleY(1); }
		46%,
		96% { transform: scaleY(0.12); }
	}

	@keyframes adcp-twinkle {
		0%,
		100% { opacity: 0.3; transform: scale(0.65); }
		50% { opacity: 1; transform: scale(1.2); }
	}

	@keyframes adcp-in {
		from { opacity: 0; transform: translateY(12px); }
		to { opacity: 1; transform: translateY(0); }
	}
}

@media (max-width: 30rem) {
	.adcp {
		--adcp-side-offset: 12px;
		width: min(21.75rem, calc(100vw - 2 * var(--adcp-side-offset)));
	}

	.adcp__launcher {
		height: 5.875rem;
	}

	.adcp__launcher-copy {
		min-width: 8.875rem;
		padding: 0.625rem 0.9375rem 0.6875rem;
		margin-bottom: 0.6875rem;
	}

	.adcp__launcher-copy strong {
		font-size: 0.8125rem;
	}

	.adcp__mascot-wrap {
		width: 4.9375rem;
		height: 5.8125rem;
		border-radius: 1.3125rem 1.3125rem 0.9375rem 0.9375rem;
	}

	.adcp__mascot-svg {
		left: -0.5rem;
		width: 5.8125rem;
		height: 6.8125rem;
	}

	.adcp__hint,
	.adcp--left .adcp__hint {
		bottom: 6.5625rem;
	}

	.adcp__panel {
		bottom: 6.75rem;
		max-height: calc(100dvh - var(--adcp-bottom-offset) - env(safe-area-inset-bottom) - 7.5rem);
		border-radius: 1.25rem;
	}

	.adcp__panel-top {
		padding-top: 0.75rem;
	}

	.adcp__panel-hero {
		padding-top: 0.875rem;
		padding-bottom: 1.125rem;
	}

	.adcp__panel-actions {
		padding-top: 1rem;
		padding-bottom: 0.875rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.adcp *,
	.adcp *::before,
	.adcp *::after {
		animation: none !important;
		scroll-behavior: auto !important;
		transition: none !important;
	}
}
