/**
 * Hero Consultation — Figma 1:38529 (1650×716px).
 *
 * Desktop (px → % względem 1650×716):
 * - Tło: assets/images/bg-cta.png (1664×820)
 * - Nagłówek: left 31, top 150, width 826
 * - Treść: left 983, top 360, width 648, gap 32
 * - Opis: width 512, font 20px, justify
 * - Przyciski: gap 32, px 32 py 18, radius 8; phone 271px
 */

.anm-hero-consultation {
	--anm-hc-ref-w: 1650;
	--anm-hc-ref-h: 716;
	--anm-hc-bg-h: 820;
	--anm-hc-headline-gradient: linear-gradient(25.6deg, #fff 54.54%, #999 88.99%);
	--anm-hc-text-muted: #dfdee8;
	--anm-hc-border: #1a1a1a;
	--anm-hc-btn-primary-bg: #dcdbe5;
	--anm-hc-btn-primary-text: #030303;
	--anm-hc-btn-phone-text: #044f71;
	--anm-hc-btn-phone-bg-start: #8fd9fb;
	--anm-hc-btn-phone-bg-end: #b0e4fc;

	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: calc(var(--anm-hc-ref-w) * 1px);
	height: auto;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 3rem;
	container-type: inline-size;
	overflow-x: clip;
	overflow-y: visible;
	background-color: #000;
	color: #fff;
	border-top: 1px solid var(--anm-hc-border);
	border-bottom: 1px solid var(--anm-hc-border);
}

/* --- Tło (bg-cta.png) --- */
.anm-hero-consultation__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
}

.anm-hero-consultation__bg-image {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: top center;
}

.anm-hero-consultation__container {
	position: relative;
	z-index: 1;
	width: 100%;
	height: auto;
}

.anm-hero-consultation__headline {
	margin: 0;
	font-family: "Playfair Display", Georgia, "Times New Roman", serif;
	font-size: 5.0625rem;
	font-size: calc(81 / var(--anm-hc-ref-w) * 100cqw);
	font-weight: 400;
	line-height: 1;
	letter-spacing: -0.03em;
	overflow: visible;
	background: var(--anm-hc-headline-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

.anm-hero-consultation__headline.anm-rich-text p {
	margin: 0;
	padding-block: 0.04em;
	background: inherit;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

.anm-hero-consultation__description {
	margin: 0;
	font-family: "IBM Plex Sans", sans-serif;
	font-size: clamp(1rem, calc(20 / var(--anm-hc-ref-w) * 100cqw), 1.25rem);
	font-weight: 400;
	line-height: 1.4;
	color: var(--anm-hc-text-muted);
}

.anm-hero-consultation__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2rem;
}

.anm-hero-consultation__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.625rem;
	padding: 1.125rem 2rem;
	border-radius: 8px;
	font-family: "IBM Plex Sans", sans-serif !important;
	font-size: clamp(1.125rem, calc(20 / var(--anm-hc-ref-w) * 100cqw), 1.25rem);
	font-weight: 500;
	line-height: normal;
	letter-spacing: 0.0125em;
	text-decoration: none;
	white-space: nowrap;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.anm-hero-consultation__btn:hover,
.anm-hero-consultation__btn:focus-visible {
	opacity: 0.92;
	transform: translateY(-1px);
}

.anm-hero-consultation__btn--primary {
	background-color: var(--anm-hc-btn-primary-bg);
	color: var(--anm-hc-btn-primary-text);
}

.anm-hero-consultation__btn--phone {
	width: 16.9375rem;
	background: linear-gradient(24.79deg, var(--anm-hc-btn-phone-bg-start) 16.98%, var(--anm-hc-btn-phone-bg-end) 97.78%);
	color: var(--anm-hc-btn-phone-text);
}

.anm-hero-consultation__phone-icon {
	flex-shrink: 0;
	width: 1.5rem;
	height: 1.5rem;
	display: block;
}

/* --- Desktop 1:1 (≥1024px) --- */
@media (min-width: 1024px) {
	.anm-hero-consultation__container {
		aspect-ratio: var(--anm-hc-ref-w) / var(--anm-hc-ref-h);
	}

	.anm-hero-consultation__headline-col {
		position: absolute;
		left: calc(31 / var(--anm-hc-ref-w) * 100%);
		top: calc(150 / var(--anm-hc-ref-h) * 100%);
		width: calc(826 / var(--anm-hc-ref-w) * 100%);
	}

	.anm-hero-consultation__content-col {
		position: absolute;
		left: calc(983 / var(--anm-hc-ref-w) * 100%);
		top: calc(360 / var(--anm-hc-ref-h) * 100%);
		width: calc(648 / var(--anm-hc-ref-w) * 100%);
		display: flex;
		flex-direction: column;
		gap: 2rem;
	}

	.anm-hero-consultation__description {
		width: calc(512 / 648 * 100%);
		text-align: justify;
	}
}

/* --- Tablet --- */
@media (max-width: 1023px) and (min-width: 768px) {
	.anm-hero-consultation {
		padding-block: 4rem;
		padding-inline: var(--anm-section-gutter);
	}

	.anm-hero-consultation__container {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 2.5rem;
		align-items: end;
	}

	.anm-hero-consultation__headline {
		font-size: clamp(2.5rem, 5vw, 4rem);
	}

	.anm-hero-consultation__content-col {
		display: flex;
		flex-direction: column;
		gap: 2rem;
	}

	.anm-hero-consultation__description {
		text-align: left;
	}

	.anm-hero-consultation__btn--phone {
		width: auto;
		min-width: 16.9375rem;
	}
}

/* --- Mobile --- */
@media (max-width: 767px) {
	.anm-hero-consultation {
		padding-block: 2.5rem 3rem;
		padding-inline: var(--anm-section-gutter);
	}

	.anm-hero-consultation__container {
		display: flex;
		flex-direction: column;
		gap: 2rem;
	}

	.anm-hero-consultation__headline {
		font-size: 2.25rem;
	}

	.anm-hero-consultation__content-col {
		display: flex;
		flex-direction: column;
		gap: 1.5rem;
	}

	.anm-hero-consultation__description {
		font-size: 1rem;
		text-align: left;
	}

	.anm-hero-consultation__actions {
		flex-direction: column;
		align-items: stretch;
		gap: 1rem;
	}

	.anm-hero-consultation__btn {
		width: 100%;
		white-space: normal;
	}

	.anm-hero-consultation__btn--phone {
		width: 100%;
		min-width: 0;
	}
}
