/*
 * PS Contact Modal: okno z formularzem konsultacji.
 *
 * Otwarcie to jedna sekwencja: tło przyciemnia się, okno wyrasta z klikniętego przycisku,
 * w ciemnym panelu ktoś wpisuje zapytanie, a wynik „Państwa firma” wspina się na pierwsze miejsce.
 * Formularz po prawej zostaje spokojny i czytelny.
 * Panel jest prawie czarny z niebieską poświatą (jak okno na tworzeniestronwww.pl): niebieski zostaje jako akcent,
 * a nie jako tło całej kolumny, więc okno nie męczy oczu.
 * Komputer: dwie kolumny. Tablet: jedna kolumna. Telefon: panel wysuwany od dołu.
 * Wartości zależne od kliknięcia i kursora (punkt rozwinięcia, światło, paralaksa) skrypt ustawia w osobnym
 * arkuszu stylów, bez stylów inline.
 * Płynność: wszystko animuje się wyłącznie przez transform i opacity (liczy to karta graficzna, nie główny wątek),
 * bez rozmycia tła (backdrop-filter przelicza się co klatkę). Ruch w tle (poświaty, pył, światło na krawędzi)
 * rusza dopiero po zakończeniu otwierania (klasa ps-modal--settled).
 */

/* ---------- Okno ---------- */

.ps-modal {
	--ps-modal-accent: var(--ps-accent, #0f62fe);
	--ps-modal-blue-20: #d0e2ff;
	--ps-modal-blue-30: #a6c8ff;
	--ps-modal-blue-40: #78a9ff;
	--ps-modal-blue-50: #4589ff;
	--ps-modal-blue-70: #0043ce;
	--ps-modal-night: #05070d;
	--ps-modal-night-2: #0a0f1c;
	--ps-modal-gray-30: #c6c6c6;
	--ps-modal-gray-40: #a8a8a8;
	--ps-modal-gray-50: #8d8d8d;
	--ps-modal-ink: #161616;
	--ps-modal-muted: #525252;
	--ps-modal-line: rgba(255, 255, 255, 0.09);
	--ps-modal-radius: 20px;
	--ps-modal-space: clamp(28px, 3.3vw, 48px);
	--ps-modal-max-height: calc(100dvh - 48px);
	--ps-modal-ease: cubic-bezier(0, 0, 0.38, 0.9);
	--ps-modal-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--ps-modal-ease-spring: cubic-bezier(0.34, 1.45, 0.64, 1);

	width: min(1080px, calc(100% - 48px));
	max-width: none;
	max-height: var(--ps-modal-max-height);
	margin: auto;
	padding: 1px;
	overflow: hidden;
	isolation: isolate;
	color: var(--ps-modal-ink);
	background-color: rgba(255, 255, 255, 0.12);
	border: 0;
	border-radius: var(--ps-modal-radius);
	box-shadow:
		0 40px 120px -24px rgba(0, 0, 0, 0.7),
		0 24px 48px -12px rgba(0, 0, 0, 0.4);
	transform-origin: var(--ps-modal-dx, 50%) var(--ps-modal-dy, 50%);
}

/* Światło okrążające krawędź okna: obracany stożkowy gradient pod panelem, widoczny jako 1px obwódka.
   Pojawia się dopiero po otwarciu (klasa ps-modal--settled), żeby jego warstwa nie powstawała w trakcie animacji.
   1400px wystarcza, by obracany kwadrat zawsze zakrywał przekątną okna. */
.ps-modal.ps-modal--settled::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: -1;
	width: 1400px;
	height: 1400px;
	margin: -700px 0 0 -700px;
	background-image: conic-gradient(
		from 0deg,
		rgba(120, 169, 255, 0) 0deg,
		rgba(120, 169, 255, 0) 220deg,
		rgba(120, 169, 255, 0.85) 290deg,
		#fff 322deg,
		rgba(120, 169, 255, 0.85) 338deg,
		rgba(120, 169, 255, 0) 360deg
	);
	pointer-events: none;
	will-change: transform;
	animation:
		ps-modal-glow-in 0.8s var(--ps-modal-ease) both,
		ps-modal-orbit 7s linear infinite;
}

/* Jednolite przyciemnienie: gradient na całym ekranie wyraźnie spowalniał otwieranie na słabszych komputerach. */
.ps-modal::backdrop {
	background-color: rgba(5, 7, 13, 0.72);
}

/* Strona pod oknem się nie przewija. Klasę dodaje skrypt po otwarciu i zdejmuje po zamknięciu, bo zmiana przewijania
   przelicza układ całej strony; zarezerwowane miejsce na pasek przewijania zapobiega przesunięciu treści. */
html.ps-modal-lock {
	overflow: hidden;
	scrollbar-gutter: stable;
}

.ps-modal__panel {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	overflow: hidden;
	background-color: #fff;
	border-radius: calc(var(--ps-modal-radius) - 1px);
}

.ps-modal__intro,
.ps-modal__body {
	max-height: calc(var(--ps-modal-max-height) - 2px);
	overflow-y: auto;
	overscroll-behavior: contain;
}

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

/* ---------- Wstęp (ciemny panel) ---------- */

.ps-modal__intro {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: clamp(28px, 2.9vw, 40px) var(--ps-modal-space);
	color: #fff;
	background-color: var(--ps-modal-night);
	/* Jedna poświata w rogu; resztę światła dają dryfujące kule w warstwie ozdobnej. */
	background-image:
		radial-gradient(120% 60% at 0% 0%, rgba(15, 98, 254, 0.4) 0%, rgba(15, 98, 254, 0) 62%),
		linear-gradient(180deg, var(--ps-modal-night-2) 0%, var(--ps-modal-night) 100%);
	scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
	scrollbar-width: thin;
}

.ps-modal__intro > * {
	position: relative;
	z-index: 1;
}

/* Warstwa ozdobna: siatka, dwie dryfujące poświaty, unoszący się pył, światło pod kursorem i jeden przebłysk
   przy otwarciu. Wszystko w jednym kontenerze z overflow: hidden, żeby przesuwane warstwy nie powiększały panelu. */
.ps-modal__fx {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
}

/* Siatka widoczna w lewym górnym rogu i gasnąca ku dołowi; przesuwa się o kilka pikseli za kursorem. */
.ps-modal__grid {
	position: absolute;
	inset: 0;
	-webkit-mask-image: radial-gradient(130% 80% at 0% 0%, #000 0%, transparent 75%);
	mask-image: radial-gradient(130% 80% at 0% 0%, #000 0%, transparent 75%);
	transform: translate3d(calc(var(--ps-modal-px, 0) * 8px), calc(var(--ps-modal-py, 0) * 6px), 0);
	transition: transform 1.2s var(--ps-modal-ease-out);
}

.ps-modal__grid::before {
	content: "";
	position: absolute;
	inset: -16px;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
	background-position: -1px -1px;
	background-size: 32px 32px;
}

.ps-modal__orbs {
	position: absolute;
	inset: 0;
	transform: translate3d(calc(var(--ps-modal-px, 0) * -22px), calc(var(--ps-modal-py, 0) * -16px), 0);
	transition: transform 1.2s var(--ps-modal-ease-out);
}

.ps-modal__orb {
	position: absolute;
	border-radius: 50%;
}

.ps-modal__orb--blue {
	top: 30%;
	right: -150px;
	width: 360px;
	height: 360px;
	background-image: radial-gradient(circle, rgba(15, 98, 254, 0.5) 0%, rgba(15, 98, 254, 0) 65%);
}

.ps-modal__orb--violet {
	bottom: -130px;
	left: -120px;
	width: 320px;
	height: 320px;
	background-image: radial-gradient(circle, rgba(138, 63, 252, 0.26) 0%, rgba(138, 63, 252, 0) 65%);
}

/* Pył: drobne punkty w powtarzalnym kafelku, płynące powoli w górę. Jedna warstwa, żeby tło było lekkie. */
.ps-modal__dust {
	position: absolute;
	inset: 0;
	overflow: hidden;
	opacity: 0.6;
}

.ps-modal__dust::before {
	content: "";
	position: absolute;
	inset: 0 0 -280px;
	background-image:
		radial-gradient(circle at 24px 40px, rgba(255, 255, 255, 0.7) 0 1px, transparent 1.6px),
		radial-gradient(circle at 150px 22px, rgba(166, 200, 255, 0.8) 0 1px, transparent 1.6px),
		radial-gradient(circle at 236px 128px, rgba(255, 255, 255, 0.5) 0 1px, transparent 1.6px),
		radial-gradient(circle at 84px 176px, rgba(120, 169, 255, 0.6) 0 1.4px, transparent 2.4px),
		radial-gradient(circle at 196px 240px, rgba(255, 255, 255, 0.45) 0 1px, transparent 1.6px),
		radial-gradient(circle at 262px 60px, rgba(120, 169, 255, 0.45) 0 1.4px, transparent 2.4px);
	background-size: 280px 280px;
}

/* Jasny pas przechodzący raz przez panel przy otwarciu. Poza animacją stoi za prawą krawędzią. */
.ps-modal__fx::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 55%;
	background-image: linear-gradient(100deg, rgba(166, 200, 255, 0) 0%, rgba(166, 200, 255, 0.13) 50%, rgba(166, 200, 255, 0) 100%);
	transform: translateX(200%);
}

.ps-modal__spotlight {
	position: absolute;
	top: 0;
	left: 0;
	width: 520px;
	height: 520px;
	margin: -260px 0 0 -260px;
	background-image: radial-gradient(circle, rgba(69, 137, 255, 0.22) 0%, rgba(69, 137, 255, 0) 62%);
	border-radius: 50%;
	opacity: 0;
	transform: translate3d(var(--ps-modal-sx, 360px), var(--ps-modal-sy, 40px), 0);
	transition: opacity 0.5s var(--ps-modal-ease), transform 0.6s var(--ps-modal-ease-out);
}

.ps-modal__intro:hover .ps-modal__spotlight {
	opacity: 1;
}

/* Nadtytuł w pigułce z pulsującą kropką. Skrypt podmienia tylko tekst, więc kropka jest pseudoelementem.
   Krój ten sam co na stronie (IBM Plex Sans): inny krój pobierałby się dopiero przy otwarciu i szarpał animację. */
.ps-modal__kicker {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 6px 14px 6px 12px;
	color: var(--ps-modal-blue-30);
	font-weight: 500;
	font-size: 12px;
	line-height: 16px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	background-color: rgba(15, 98, 254, 0.14);
	border: 1px solid rgba(120, 169, 255, 0.28);
	border-radius: 999px;
}

.ps-modal__kicker::before,
.ps-modal__kicker::after {
	content: "";
	width: 6px;
	height: 6px;
	background-color: var(--ps-modal-blue-50);
	border-radius: 50%;
}

.ps-modal__kicker::before {
	flex: 0 0 auto;
	box-shadow: 0 0 8px rgba(69, 137, 255, 0.9);
}

.ps-modal__kicker::after {
	position: absolute;
	top: 50%;
	left: 12px;
	margin-top: -3px;
	opacity: 0;
}

.ps-modal__title {
	margin: 0;
	color: #fff;
	font-weight: 300;
	font-size: clamp(26px, 2.2vw, 31px);
	line-height: 1.18;
	text-wrap: balance;
}

.ps-modal__title:focus {
	outline: none;
}

/* Tytuł pojawia się słowo po słowie, każde wysuwa się spod niewidocznej krawędzi. */
.ps-modal__word {
	display: inline-block;
	margin: -0.14em 0 -0.12em;
	padding: 0.14em 0 0.12em;
	overflow: hidden;
	vertical-align: top;
}

.ps-modal__word-inner {
	display: inline-block;
}

.ps-modal__lead {
	max-width: 46ch;
	margin: 0;
	color: var(--ps-modal-gray-30);
	font-size: 16px;
	line-height: 24px;
}

/* ---------- Pokaz: wynik wyszukiwania wspina się na pierwsze miejsce ---------- */

.ps-modal__serp {
	--ps-modal-row: 34px;
	--ps-modal-row-gap: 6px;
	--ps-modal-step: calc(var(--ps-modal-row) + var(--ps-modal-row-gap));

	display: grid;
	gap: 10px;
	padding: 12px;
	background-color: rgba(255, 255, 255, 0.035);
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 14px;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.06),
		0 30px 60px -30px rgba(0, 0, 0, 0.9);
	contain: layout paint;
	transform: perspective(900px) rotateX(var(--ps-modal-tx, 0deg)) rotateY(var(--ps-modal-ty, 0deg));
	transition: transform 0.5s var(--ps-modal-ease-out);
}

.ps-modal__serp-search {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 34px;
	padding: 0 14px;
	color: #f4f4f4;
	font-size: 13px;
	line-height: 18px;
	background-color: rgba(255, 255, 255, 0.06);
	border-radius: 999px;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.ps-modal__serp-icon {
	display: inline-flex;
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
	color: var(--ps-modal-blue-40);
}

.ps-modal__serp-icon svg {
	width: 100%;
	height: 100%;
}

.ps-modal__serp-query {
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
}

.ps-modal__serp-caret {
	flex: 0 0 auto;
	width: 1.5px;
	height: 16px;
	margin-left: -6px;
	background-color: var(--ps-modal-blue-40);
	animation: ps-modal-caret 1s steps(1) infinite;
}

.ps-modal__serp-list {
	display: grid;
	gap: var(--ps-modal-row-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.ps-modal__serp-row {
	position: relative;
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px;
	height: var(--ps-modal-row);
	padding: 0 10px;
	overflow: hidden;
	background-color: rgba(255, 255, 255, 0.04);
	border-radius: 8px;
}

/* Przebłysk na wierszu: na wynikach konkurencji raz, jak doczytywanie; na „Państwa firma” co kilka sekund.
   Poza animacją stoi za prawą krawędzią wiersza. */
.ps-modal__serp-row::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.09) 50%, rgba(255, 255, 255, 0) 100%);
	pointer-events: none;
	transform: translateX(100%);
}

.ps-modal__serp-row--you {
	z-index: 1;
	color: #fff;
	background-color: rgba(15, 98, 254, 0.14);
	background-image: linear-gradient(90deg, rgba(15, 98, 254, 0.42) 0%, rgba(15, 98, 254, 0.12) 100%);
	box-shadow:
		inset 0 0 0 1px rgba(120, 169, 255, 0.45),
		0 14px 28px -14px rgba(15, 98, 254, 0.8);
}

.ps-modal__serp-row--you::after {
	background-image: linear-gradient(90deg, rgba(208, 226, 255, 0) 0%, rgba(208, 226, 255, 0.22) 50%, rgba(208, 226, 255, 0) 100%);
}

.ps-modal__serp-pos {
	display: block;
	width: 22px;
	height: 22px;
	overflow: hidden;
	color: var(--ps-modal-gray-50);
	font-weight: 600;
	font-size: 12px;
	line-height: 22px;
	text-align: center;
	background-color: rgba(255, 255, 255, 0.07);
	border-radius: 6px;
}

.ps-modal__serp-row--you .ps-modal__serp-pos {
	color: #fff;
	background-color: var(--ps-modal-accent);
	box-shadow: 0 0 14px rgba(15, 98, 254, 0.85);
}

.ps-modal__serp-pos-strip {
	display: block;
}

.ps-modal__serp-pos-num {
	display: block;
	height: 22px;
}

.ps-modal__serp-lines {
	display: grid;
	gap: 5px;
	min-width: 0;
}

.ps-modal__serp-line {
	display: block;
	height: 6px;
	background-color: rgba(255, 255, 255, 0.16);
	border-radius: 3px;
}

.ps-modal__serp-line--short {
	width: 55%;
	background-color: rgba(255, 255, 255, 0.08);
}

.ps-modal__serp-row--you .ps-modal__serp-lines {
	gap: 1px;
}

.ps-modal__serp-name {
	color: #fff;
	font-weight: 600;
	font-size: 13px;
	line-height: 16px;
}

.ps-modal__serp-url {
	overflow: hidden;
	color: rgba(208, 226, 255, 0.72);
	font-size: 11px;
	line-height: 13px;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.ps-modal__serp-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 8px;
	color: var(--ps-modal-blue-20);
	font-weight: 600;
	font-size: 11px;
	line-height: 14px;
	background-color: rgba(166, 200, 255, 0.14);
	border-radius: 999px;
	box-shadow: inset 0 0 0 1px rgba(166, 200, 255, 0.3);
}

.ps-modal__serp-badge svg {
	width: 12px;
	height: 12px;
}

/* ---------- Korzyści i kontakt ---------- */

.ps-modal__benefits {
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ps-modal__benefits[hidden] {
	display: none;
}

.ps-modal__benefit {
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr);
	gap: 12px;
	padding: 9px 0;
	border-top: 1px solid var(--ps-modal-line);
}

.ps-modal__benefit-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	color: var(--ps-modal-blue-30);
	background-color: rgba(15, 98, 254, 0.2);
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px rgba(120, 169, 255, 0.35);
}

.ps-modal__benefit-icon svg {
	width: 14px;
	height: 14px;
}

.ps-modal__benefit-body {
	display: grid;
	gap: 2px;
}

.ps-modal__benefit-title {
	color: #f4f4f4;
	font-weight: 600;
	font-size: 15px;
	line-height: 22px;
}

/* Opisy korzyści tylko na wysokich ekranach; na zwykłym laptopie zostają same nazwy, żeby okno się nie przewijało. */
.ps-modal__benefit-text {
	display: none;
	color: var(--ps-modal-gray-40);
	font-size: 13px;
	line-height: 18px;
	letter-spacing: 0.16px;
}

.ps-modal__benefit-text[hidden] {
	display: none;
}

.ps-modal__contact {
	display: grid;
	gap: 10px;
	margin: auto 0 0;
	padding: 18px 0 0;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ps-modal__contact-label {
	margin: 0;
	color: var(--ps-modal-gray-50);
	font-weight: 500;
	font-size: 11.5px;
	line-height: 16px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.ps-modal__contact-list {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ps-modal__contact-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: #fff;
	text-decoration: none;
	transition: color 0.2s var(--ps-modal-ease);
}

.ps-modal__contact-link:hover,
.ps-modal__contact-link:focus-visible {
	color: var(--ps-modal-blue-30);
}

.ps-modal__contact-link:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.ps-modal__contact-icon {
	position: relative;
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	transition: transform 0.4s var(--ps-modal-ease-spring);
}

.ps-modal__contact-icon svg {
	width: 100%;
	height: 100%;
}

.ps-modal__contact-link:hover .ps-modal__contact-icon {
	transform: rotate(-12deg) scale(1.08);
}

.ps-modal__contact-link--phone {
	gap: 14px;
	font-weight: 300;
	font-size: clamp(28px, 2.6vw, 36px);
	line-height: 1.2;
	white-space: nowrap;
}

/* Telefon w niebieskim kółku, od którego co chwilę rozchodzi się fala. */
.ps-modal__contact-link--phone .ps-modal__contact-icon {
	width: 44px;
	height: 44px;
	color: #fff;
	background-color: var(--ps-modal-accent);
	border-radius: 50%;
	box-shadow: 0 10px 24px -8px rgba(15, 98, 254, 0.9);
}

.ps-modal__contact-link--phone .ps-modal__contact-icon svg {
	width: 20px;
	height: 20px;
}

.ps-modal__contact-link--phone .ps-modal__contact-icon::after {
	content: "";
	position: absolute;
	inset: 0;
	border: 2px solid rgba(69, 137, 255, 0.75);
	border-radius: 50%;
	opacity: 0;
	pointer-events: none;
}

/* Ikona e-maila ma marginesy do szerokości kółka telefonu, więc oba teksty zaczynają się w tej samej linii. */
.ps-modal__contact-link--email {
	gap: 14px;
	color: var(--ps-modal-gray-30);
	font-size: 16px;
	line-height: 24px;
	overflow-wrap: anywhere;
}

.ps-modal__contact-link--email .ps-modal__contact-icon {
	width: 18px;
	height: 18px;
	margin: 0 13px;
	color: var(--ps-modal-blue-40);
}

.ps-modal__contact-link--email:hover,
.ps-modal__contact-link--email:focus-visible {
	color: #fff;
}

/* Numer telefonu przewija się cyframi jak licznik i zatrzymuje na właściwej cyfrze. */
.ps-modal__digits {
	display: inline-flex;
	font-variant-numeric: tabular-nums;
}

.ps-modal__digit {
	display: inline-block;
	height: 1.2em;
	overflow: hidden;
	vertical-align: top;
}

.ps-modal__digit-gap {
	display: inline-block;
	white-space: pre;
}

.ps-modal__digit-strip {
	display: flex;
	flex-direction: column;
	transform: translateY(var(--ps-modal-roll, 0%));
}

.ps-modal__digit-cell {
	display: block;
	height: 1.2em;
	line-height: 1.2em;
}

/* Pasek ma cyfry 0–9 dwa razy; cel leży w drugim komplecie, więc każda cyfra robi pełny obrót. */
.ps-modal__digit-strip--0 { --ps-modal-roll: -50%; }
.ps-modal__digit-strip--1 { --ps-modal-roll: -55%; }
.ps-modal__digit-strip--2 { --ps-modal-roll: -60%; }
.ps-modal__digit-strip--3 { --ps-modal-roll: -65%; }
.ps-modal__digit-strip--4 { --ps-modal-roll: -70%; }
.ps-modal__digit-strip--5 { --ps-modal-roll: -75%; }
.ps-modal__digit-strip--6 { --ps-modal-roll: -80%; }
.ps-modal__digit-strip--7 { --ps-modal-roll: -85%; }
.ps-modal__digit-strip--8 { --ps-modal-roll: -90%; }
.ps-modal__digit-strip--9 { --ps-modal-roll: -95%; }

/* ---------- Formularz (biały panel) ---------- */

.ps-modal__body {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: clamp(28px, 2.8vw, 40px) var(--ps-modal-space);
	background-color: #fff;
}

.ps-modal__note {
	margin: 0 56px 0 0;
	color: var(--ps-modal-muted);
	font-size: 12px;
	line-height: 16px;
	letter-spacing: 0.32px;
}

/* W oknie formularz jest zwięźlejszy niż w sekcji strony, żeby przycisk wysyłki mieścił się na ekranie laptopa:
   mniejsze odstępy i niższe pole wiadomości. */
.ps-modal .ps-form {
	gap: 24px;
}

.ps-modal .ps-columns {
	row-gap: 16px;
}

.ps-modal .ps-form-textarea {
	min-height: 96px;
	height: 96px;
}

.ps-modal .ps-form-field > .ps-label-muted {
	transition: color 0.2s var(--ps-modal-ease);
}

.ps-modal .ps-form-field:focus-within > .ps-label-muted {
	color: var(--ps-modal-accent);
}

.ps-modal .ps-form-submit-button {
	position: relative;
	overflow: hidden;
	box-shadow: 0 14px 26px -16px rgba(15, 98, 254, 0.95);
	transition:
		background-color 0.15s var(--ps-modal-ease),
		box-shadow 0.3s var(--ps-modal-ease),
		transform 0.3s var(--ps-modal-ease-out);
}

.ps-modal .ps-form-submit-button:hover {
	box-shadow: 0 18px 30px -14px rgba(15, 98, 254, 1);
	transform: translateY(-1px);
}

/* Odblask przechodzący przez przycisk: raz po otwarciu okna i przy każdym najechaniu. */
.ps-modal .ps-form-submit-button::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: -60%;
	width: 45%;
	background-image: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.38) 50%, rgba(255, 255, 255, 0) 100%);
	pointer-events: none;
	transform: skewX(-18deg);
}

.ps-modal .ps-form-submit-button:hover::before {
	transform: skewX(-18deg) translateX(480%);
	transition: transform 0.8s var(--ps-modal-ease);
}

.ps-modal .ps-form-submit-button:disabled {
	box-shadow: none;
	transform: none;
}

/* ---------- Zamknięcie ---------- */

.ps-modal__close {
	position: absolute;
	top: 17px;
	right: 17px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	color: var(--ps-modal-ink);
	background-color: #f4f4f4;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition:
		background-color 0.25s var(--ps-modal-ease),
		color 0.25s var(--ps-modal-ease),
		transform 0.4s var(--ps-modal-ease-spring);
}

.ps-modal__close:hover {
	color: #fff;
	background-color: var(--ps-modal-ink);
	transform: rotate(90deg);
}

.ps-modal__close:focus-visible {
	outline: 2px solid var(--ps-modal-accent);
	outline-offset: 2px;
}

.ps-modal__close svg {
	width: 20px;
	height: 20px;
}

/* ---------- Animacje ---------- */

@keyframes ps-modal-orbit {
	from { transform: rotate(0deg); }
	to { transform: rotate(1turn); }
}

@keyframes ps-modal-glow-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* Okno wyrasta z klikniętego przycisku: transform-origin to punkt przycisku (--ps-modal-dx/dy od skryptu).
   Bez skryptu środek ekranu. Tło tylko się przyciemnia (sama przezroczystość, bez przeliczania obrazu strony). */
@keyframes ps-modal-unfold {
	from { opacity: 0; transform: scale(0.16); }
	35% { opacity: 1; }
	to { opacity: 1; transform: none; }
}

@keyframes ps-modal-fold {
	from { opacity: 1; transform: none; }
	65% { opacity: 1; }
	to { opacity: 0; transform: scale(0.16); }
}

@keyframes ps-modal-dim-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes ps-modal-dim-out {
	from { opacity: 1; }
	to { opacity: 0; }
}

@keyframes ps-modal-sheet-in {
	from { transform: translateY(100%); }
	to { transform: none; }
}

@keyframes ps-modal-sheet-out {
	from { transform: none; }
	to { transform: translateY(100%); }
}

@keyframes ps-modal-rise {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: none; }
}

@keyframes ps-modal-word {
	from { transform: translateY(110%); }
	to { transform: none; }
}

@keyframes ps-modal-caret {
	50% { opacity: 0; }
}

@keyframes ps-modal-row-in {
	from { opacity: 0; clip-path: inset(0 100% 0 0 round 8px); }
	to { opacity: 1; clip-path: inset(0 0 0 0 round 8px); }
}

@keyframes ps-modal-climb {
	from { transform: none; }
	to { transform: translateY(calc(var(--ps-modal-step) * -2)); }
}

@keyframes ps-modal-sink {
	from { transform: none; }
	to { transform: translateY(var(--ps-modal-step)); }
}

@keyframes ps-modal-pos {
	from { transform: none; }
	to { transform: translateY(-50%); }
}

@keyframes ps-modal-ring {
	0% {
		box-shadow:
			inset 0 0 0 1px rgba(120, 169, 255, 0.45),
			0 14px 28px -14px rgba(15, 98, 254, 0.8),
			0 0 0 0 rgba(120, 169, 255, 0.7);
	}
	100% {
		box-shadow:
			inset 0 0 0 1px rgba(120, 169, 255, 0.45),
			0 14px 28px -14px rgba(15, 98, 254, 0.8),
			0 0 0 12px rgba(120, 169, 255, 0);
	}
}

@keyframes ps-modal-pop {
	from { opacity: 0; transform: scale(0.2) rotate(-20deg); }
	to { opacity: 1; transform: none; }
}

@keyframes ps-modal-roll {
	from { transform: translateY(0%); }
}

@keyframes ps-modal-sheen {
	from { transform: skewX(-18deg); }
	to { transform: skewX(-18deg) translateX(480%); }
}

/* Przebłysk przez panel, doczytywanie wierszy i połysk wiersza „Państwa firma”. */
@keyframes ps-modal-sweep {
	from { transform: translateX(-100%); }
	to { transform: translateX(200%); }
}

@keyframes ps-modal-skeleton {
	from { transform: translateX(-100%); }
	to { transform: translateX(100%); }
}

@keyframes ps-modal-shine {
	0% { transform: translateX(-100%); }
	28%,
	100% { transform: translateX(100%); }
}

/* Pole wyszukiwania podświetla się, gdy ktoś w nim „pisze”. */
@keyframes ps-modal-typing {
	0%,
	100% { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 0 0 rgba(15, 98, 254, 0); }
	18%,
	80% { box-shadow: inset 0 0 0 1px rgba(120, 169, 255, 0.7), 0 0 0 4px rgba(15, 98, 254, 0.22); }
}

/* Ruch w tle po otwarciu */
@keyframes ps-modal-drift-a {
	0% { transform: none; }
	50% { transform: translate3d(-70px, 46px, 0) scale(1.15); }
	100% { transform: translate3d(-24px, -54px, 0) scale(0.94); }
}

@keyframes ps-modal-drift-b {
	0% { transform: none; }
	50% { transform: translate3d(60px, -40px, 0) scale(1.12); }
	100% { transform: translate3d(90px, 20px, 0) scale(0.96); }
}

@keyframes ps-modal-float {
	from { transform: none; }
	to { transform: translate3d(0, -280px, 0); }
}

@keyframes ps-modal-beacon {
	0% { opacity: 0.8; transform: scale(1); }
	70%,
	100% { opacity: 0; transform: scale(3.4); }
}

@keyframes ps-modal-wave {
	0% { opacity: 0.85; transform: scale(1); }
	70%,
	100% { opacity: 0; transform: scale(1.75); }
}

@keyframes ps-modal-twinkle {
	0%,
	72%,
	100% { transform: none; }
	82% { transform: rotate(90deg) scale(1.45); }
	92% { transform: rotate(180deg) scale(1); }
}

/* Okno i tło */

.ps-modal[open] {
	animation: ps-modal-unfold 0.7s var(--ps-modal-ease-out) backwards;
}

.ps-modal[open]::backdrop {
	animation: ps-modal-dim-in 0.4s var(--ps-modal-ease) backwards;
}

.ps-modal.ps-modal--closing {
	animation: ps-modal-fold 0.4s cubic-bezier(0.5, 0, 0.75, 0) both;
}

.ps-modal.ps-modal--closing::backdrop {
	animation: ps-modal-dim-out 0.4s var(--ps-modal-ease) both;
}

/* Wstęp */

.ps-modal[open] .ps-modal__fx::after {
	animation: ps-modal-sweep 1.6s var(--ps-modal-ease) 0.35s backwards;
}

.ps-modal[open] .ps-modal__kicker {
	animation: ps-modal-rise 0.6s var(--ps-modal-ease-out) 0.2s backwards;
}

.ps-modal[open] .ps-modal__word-inner {
	animation: ps-modal-word 0.8s var(--ps-modal-ease-out) 0.25s backwards;
}

.ps-modal[open] .ps-modal__word:nth-child(2) .ps-modal__word-inner { animation-delay: 0.29s; }
.ps-modal[open] .ps-modal__word:nth-child(3) .ps-modal__word-inner { animation-delay: 0.33s; }
.ps-modal[open] .ps-modal__word:nth-child(4) .ps-modal__word-inner { animation-delay: 0.37s; }
.ps-modal[open] .ps-modal__word:nth-child(5) .ps-modal__word-inner { animation-delay: 0.41s; }
.ps-modal[open] .ps-modal__word:nth-child(6) .ps-modal__word-inner { animation-delay: 0.45s; }
.ps-modal[open] .ps-modal__word:nth-child(7) .ps-modal__word-inner { animation-delay: 0.49s; }
.ps-modal[open] .ps-modal__word:nth-child(8) .ps-modal__word-inner { animation-delay: 0.53s; }
.ps-modal[open] .ps-modal__word:nth-child(9) .ps-modal__word-inner { animation-delay: 0.57s; }
.ps-modal[open] .ps-modal__word:nth-child(n+10) .ps-modal__word-inner { animation-delay: 0.61s; }

.ps-modal[open] .ps-modal__lead {
	animation: ps-modal-rise 0.7s var(--ps-modal-ease-out) 0.45s backwards;
}

.ps-modal[open] .ps-modal__serp {
	animation: ps-modal-rise 0.7s var(--ps-modal-ease-out) 0.55s backwards;
}

/* Skrypt wpisuje zapytanie od 0,75 s do ok. 1,65 s; w tym czasie pole świeci jak aktywne. */
.ps-modal[open] .ps-modal__serp-search {
	animation: ps-modal-typing 1.3s var(--ps-modal-ease) 0.6s both;
}

/* Wyniki doczytują się po wpisaniu zapytania, a potem „Państwa firma” wspina się z 3. na 1. miejsce,
   a konkurenci schodzą o jedno niżej. */
.ps-modal[open] .ps-modal__serp-row--rival {
	animation:
		ps-modal-row-in 0.5s var(--ps-modal-ease-out) 1.7s backwards,
		ps-modal-sink 0.9s var(--ps-modal-ease-out) 2.3s both;
}

.ps-modal[open] .ps-modal__serp-row--rival:nth-child(2) {
	animation-delay: 1.78s, 2.34s;
}

.ps-modal[open] .ps-modal__serp-row--rival::after {
	animation: ps-modal-skeleton 0.9s var(--ps-modal-ease) 1.85s backwards;
}

.ps-modal[open] .ps-modal__serp-row--rival:nth-child(2)::after {
	animation-delay: 1.95s;
}

.ps-modal[open] .ps-modal__serp-row--you {
	animation:
		ps-modal-row-in 0.5s var(--ps-modal-ease-out) 1.86s backwards,
		ps-modal-climb 1s var(--ps-modal-ease-spring) 2.25s both,
		ps-modal-ring 0.9s var(--ps-modal-ease-out) 3.15s backwards;
}

.ps-modal[open] .ps-modal__serp-pos-strip {
	animation: ps-modal-pos 0.5s var(--ps-modal-ease-out) 2.55s both;
}

.ps-modal[open] .ps-modal__serp-badge {
	animation: ps-modal-pop 0.6s var(--ps-modal-ease-spring) 3.1s both;
}

/* Korzyści i kontakt */

.ps-modal[open] .ps-modal__benefit {
	animation: ps-modal-rise 0.6s var(--ps-modal-ease-out) 0.65s backwards;
}

.ps-modal[open] .ps-modal__benefit:nth-child(2) { animation-delay: 0.72s; }
.ps-modal[open] .ps-modal__benefit:nth-child(3) { animation-delay: 0.79s; }
.ps-modal[open] .ps-modal__benefit:nth-child(n+4) { animation-delay: 0.86s; }

.ps-modal[open] .ps-modal__benefit-icon {
	animation: ps-modal-pop 0.55s var(--ps-modal-ease-spring) 0.85s backwards;
}

.ps-modal[open] .ps-modal__benefit:nth-child(2) .ps-modal__benefit-icon { animation-delay: 0.93s; }
.ps-modal[open] .ps-modal__benefit:nth-child(3) .ps-modal__benefit-icon { animation-delay: 1.01s; }
.ps-modal[open] .ps-modal__benefit:nth-child(n+4) .ps-modal__benefit-icon { animation-delay: 1.09s; }

.ps-modal[open] .ps-modal__contact {
	animation: ps-modal-rise 0.7s var(--ps-modal-ease-out) 0.7s backwards;
}

.ps-modal[open] .ps-modal__contact-link--phone .ps-modal__contact-icon {
	animation: ps-modal-pop 0.6s var(--ps-modal-ease-spring) 0.85s backwards;
}

.ps-modal[open] .ps-modal__digit-strip {
	animation: ps-modal-roll 1.3s var(--ps-modal-ease-out) 0.8s both;
}

.ps-modal[open] .ps-modal__digits > :nth-child(2) .ps-modal__digit-strip { animation-delay: 0.85s; }
.ps-modal[open] .ps-modal__digits > :nth-child(3) .ps-modal__digit-strip { animation-delay: 0.9s; }
.ps-modal[open] .ps-modal__digits > :nth-child(5) .ps-modal__digit-strip { animation-delay: 1s; }
.ps-modal[open] .ps-modal__digits > :nth-child(6) .ps-modal__digit-strip { animation-delay: 1.05s; }
.ps-modal[open] .ps-modal__digits > :nth-child(7) .ps-modal__digit-strip { animation-delay: 1.1s; }
.ps-modal[open] .ps-modal__digits > :nth-child(9) .ps-modal__digit-strip { animation-delay: 1.2s; }
.ps-modal[open] .ps-modal__digits > :nth-child(10) .ps-modal__digit-strip { animation-delay: 1.25s; }
.ps-modal[open] .ps-modal__digits > :nth-child(n+11) .ps-modal__digit-strip { animation-delay: 1.3s; }

/* Ruch w tle: rusza po otwarciu (klasa ps-modal--settled po ok. 0,7 s), opóźnienia liczą się od tej chwili. */

.ps-modal--settled .ps-modal__orb--blue {
	animation: ps-modal-drift-a 14s ease-in-out infinite alternate;
}

.ps-modal--settled .ps-modal__orb--violet {
	animation: ps-modal-drift-b 18s ease-in-out infinite alternate;
}

.ps-modal--settled .ps-modal__dust::before {
	animation: ps-modal-float 30s linear infinite;
}

.ps-modal--settled .ps-modal__kicker::after {
	animation: ps-modal-beacon 2.4s var(--ps-modal-ease) 0.4s infinite;
}

.ps-modal--settled .ps-modal__contact-link--phone .ps-modal__contact-icon::after {
	animation: ps-modal-wave 2.6s var(--ps-modal-ease) 0.6s infinite;
}

.ps-modal--settled .ps-modal__serp-row--you::after {
	animation: ps-modal-shine 5s ease-in-out 3.3s infinite;
}

.ps-modal--settled .ps-modal__serp-badge svg {
	animation: ps-modal-twinkle 3.6s ease-in-out 3s infinite;
}

/* Formularz: pola wchodzą po kolei, przycisk dostaje jeden odblask */

.ps-modal[open] .ps-modal__note,
.ps-modal[open] .ps-modal__body .ps-columns > *,
.ps-modal[open] .ps-modal__body .ps-form-actions {
	animation: ps-modal-rise 0.55s var(--ps-modal-ease-out) 0.3s backwards;
}

.ps-modal[open] .ps-modal__body .ps-columns > :nth-child(2) { animation-delay: 0.34s; }
.ps-modal[open] .ps-modal__body .ps-columns > :nth-child(3) { animation-delay: 0.38s; }
.ps-modal[open] .ps-modal__body .ps-columns > :nth-child(4) { animation-delay: 0.42s; }
.ps-modal[open] .ps-modal__body .ps-columns > :nth-child(5) { animation-delay: 0.46s; }
.ps-modal[open] .ps-modal__body .ps-columns > :nth-child(6) { animation-delay: 0.5s; }
.ps-modal[open] .ps-modal__body .ps-columns > :nth-child(7) { animation-delay: 0.54s; }
.ps-modal[open] .ps-modal__body .ps-columns > :nth-child(n+8) { animation-delay: 0.58s; }

.ps-modal[open] .ps-modal__body .ps-form-actions {
	animation-delay: 0.62s;
}

.ps-modal[open] .ps-form-submit-button::before {
	animation: ps-modal-sheen 1.1s var(--ps-modal-ease) 1.5s backwards;
}

/* ---------- Wysokość ekranu komputera ---------- */

@media (min-width: 1024px) and (min-height: 920px) {
	.ps-modal__benefit-text {
		display: block;
	}
}

/* Niższe ekrany laptopów: okno zagęszcza się stopniowo, żeby przycisk wysyłki był widoczny bez przewijania. */
@media (min-width: 1024px) and (max-height: 800px) {
	.ps-modal__benefits,
	.ps-modal__contact-label {
		display: none;
	}

	.ps-modal__intro {
		gap: 14px;
	}

	.ps-modal__body {
		gap: 12px;
		padding-top: 28px;
		padding-bottom: 28px;
	}

	.ps-modal .ps-form {
		gap: 20px;
	}

	.ps-modal .ps-columns {
		row-gap: 12px;
	}

	.ps-modal .ps-form-textarea {
		min-height: 72px;
		height: 72px;
	}
}

@media (min-width: 1024px) and (max-height: 700px) {
	.ps-modal {
		--ps-modal-max-height: calc(100dvh - 32px);
	}

	.ps-modal__lead,
	.ps-modal__note {
		display: none;
	}

	.ps-modal__intro,
	.ps-modal__body {
		padding-top: 24px;
		padding-bottom: 24px;
	}

	/* Bez notatki o polach wymaganych pierwszy rząd pól podchodzi wyżej, więc przycisk zamknięcia jest mniejszy
	   i bliżej rogu, a formularz zaczyna się pod nim. */
	.ps-modal__body {
		padding-top: 40px;
	}

	.ps-modal__close {
		top: 10px;
		right: 10px;
		width: 36px;
		height: 36px;
	}

	.ps-modal .ps-form-input,
	.ps-modal .ps-form-select {
		min-height: 40px;
	}

	.ps-modal__contact-link--phone .ps-modal__contact-icon {
		width: 38px;
		height: 38px;
	}

	.ps-modal__contact-link--email .ps-modal__contact-icon {
		margin: 0 10px;
	}
}

@media (min-width: 1024px) and (max-height: 600px) {
	.ps-modal__serp {
		display: none;
	}
}

/* ---------- Tablet: jedna kolumna ---------- */

@media (max-width: 1023px) {
	.ps-modal {
		width: min(640px, calc(100% - 48px));
	}

	.ps-modal__panel {
		display: block;
		max-height: calc(var(--ps-modal-max-height) - 2px);
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	.ps-modal__intro,
	.ps-modal__body {
		max-height: none;
		overflow: visible;
	}

	.ps-modal__intro {
		gap: 14px;
		padding: 32px 80px 28px 32px;
	}

	.ps-modal__serp,
	.ps-modal__benefits,
	.ps-modal__spotlight,
	.ps-modal__contact-label {
		display: none;
	}

	.ps-modal__orb--blue {
		top: -60px;
	}

	.ps-modal__contact {
		margin-top: 4px;
		padding-top: 16px;
	}

	.ps-modal__contact-list {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 8px 24px;
	}

	.ps-modal__contact-link--phone {
		gap: 12px;
		font-weight: 400;
		font-size: 24px;
	}

	.ps-modal__contact-link--phone .ps-modal__contact-icon {
		width: 36px;
		height: 36px;
	}

	.ps-modal__contact-link--phone .ps-modal__contact-icon svg {
		width: 17px;
		height: 17px;
	}

	.ps-modal__contact-link--email {
		gap: 10px;
	}

	.ps-modal__contact-link--email .ps-modal__contact-icon {
		margin: 0;
	}

	.ps-modal__body {
		padding: 28px 32px 32px;
	}

	.ps-modal__note {
		margin-right: 0;
	}

	/* Przycisk zostaje w rogu okna, gdy treść się przewija, więc musi być widoczny i na ciemnym, i na białym tle. */
	.ps-modal__close {
		color: #fff;
		background-color: rgba(22, 22, 22, 0.55);
		box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
	}

	.ps-modal__close:hover {
		background-color: rgba(22, 22, 22, 0.85);
	}

	.ps-modal__close:focus-visible {
		outline-color: #fff;
		box-shadow: 0 0 0 4px var(--ps-modal-accent);
	}
}

/* ---------- Telefon: panel od dołu ---------- */

@media (max-width: 767px) {
	.ps-modal {
		--ps-modal-max-height: calc(100dvh - 12px);

		width: 100%;
		margin: auto 0 0;
		border-radius: var(--ps-modal-radius) var(--ps-modal-radius) 0 0;
	}

	.ps-modal__panel {
		border-radius: calc(var(--ps-modal-radius) - 1px) calc(var(--ps-modal-radius) - 1px) 0 0;
	}

	.ps-modal[open] {
		animation: ps-modal-sheet-in 0.6s var(--ps-modal-ease-out) both;
	}

	.ps-modal.ps-modal--closing {
		animation: ps-modal-sheet-out 0.3s cubic-bezier(0.4, 0, 1, 1) both;
	}

	.ps-modal__intro {
		gap: 12px;
		padding: 24px 72px 20px 20px;
	}

	.ps-modal__kicker {
		padding: 5px 12px 5px 10px;
		font-size: 11px;
	}

	.ps-modal__kicker::after {
		left: 10px;
	}

	.ps-modal__title {
		font-size: 24px;
		line-height: 30px;
	}

	.ps-modal__lead {
		display: none;
	}

	.ps-modal__contact-link--phone {
		gap: 10px;
		font-size: 20px;
	}

	.ps-modal__contact-link--phone .ps-modal__contact-icon {
		width: 32px;
		height: 32px;
	}

	.ps-modal__contact-link--phone .ps-modal__contact-icon svg {
		width: 15px;
		height: 15px;
	}

	/* Telefon i e-mail stoją tu jeden pod drugim, więc tekst e-maila wyrównujemy do numeru. */
	.ps-modal__contact-link--email .ps-modal__contact-icon {
		margin: 0 7px;
	}

	.ps-modal__body {
		padding: 20px 20px calc(24px + env(safe-area-inset-bottom));
	}

	.ps-modal__close {
		top: 12px;
		right: 12px;
	}
}

@media (max-width: 479px) {
	.ps-modal .ps-form-submit-button {
		width: 100%;
	}
}

/* Telefon lub tablet obrócony poziomo: niski ekran, więc ciemny nagłówek jest zwarty, a formularz zaczyna się wyżej. */
@media (max-width: 1023px) and (max-height: 560px) {
	.ps-modal {
		--ps-modal-max-height: calc(100dvh - 16px);
	}

	.ps-modal__intro {
		gap: 8px;
		padding: 16px 64px 14px 20px;
	}

	.ps-modal__kicker {
		padding: 4px 10px 4px 9px;
		font-size: 10.5px;
		line-height: 14px;
	}

	.ps-modal__kicker::after {
		left: 9px;
	}

	.ps-modal__title {
		font-size: 20px;
		line-height: 26px;
	}

	.ps-modal__lead {
		display: none;
	}

	.ps-modal__contact {
		margin-top: 2px;
		padding-top: 10px;
	}

	.ps-modal__contact-list {
		gap: 4px 20px;
	}

	.ps-modal__contact-link--phone {
		gap: 8px;
		font-size: 18px;
	}

	.ps-modal__contact-link--phone .ps-modal__contact-icon {
		width: 28px;
		height: 28px;
	}

	.ps-modal__contact-link--phone .ps-modal__contact-icon svg {
		width: 13px;
		height: 13px;
	}

	.ps-modal__contact-link--email {
		font-size: 14px;
	}

	.ps-modal__body {
		padding: 16px 20px 20px;
	}

	.ps-modal__close {
		top: 10px;
		right: 10px;
		width: 40px;
		height: 40px;
	}
}

@media (min-width: 768px) and (max-width: 1023px) and (max-height: 560px) {
	.ps-modal {
		width: min(760px, calc(100% - 24px));
	}
}

@media (hover: none) {
	.ps-modal__spotlight {
		display: none;
	}
}

/* ---------- Ograniczony ruch (ustawienie systemu albo strony) ----------
   Bez animacji pokaz od razu stoi w stanie końcowym: „Państwa firma” na pierwszym miejscu. */

@media (prefers-reduced-motion: reduce) {
	.ps-modal .ps-modal__serp-row--rival {
		transform: translateY(var(--ps-modal-step));
	}

	.ps-modal .ps-modal__serp-row--you {
		transform: translateY(calc(var(--ps-modal-step) * -2));
	}

	.ps-modal .ps-modal__serp-pos-strip {
		transform: translateY(-50%);
	}

	.ps-modal,
	.ps-modal.ps-modal--settled::before,
	.ps-modal::backdrop,
	.ps-modal [class*="ps-modal__"],
	.ps-modal [class*="ps-modal__"]::before,
	.ps-modal [class*="ps-modal__"]::after,
	.ps-modal .ps-form-submit-button::before,
	.ps-modal .ps-columns > *,
	.ps-modal .ps-form-actions {
		animation: none !important;
		transition: none !important;
	}
}

.ps-reduced-motion .ps-modal .ps-modal__serp-row--rival {
	transform: translateY(var(--ps-modal-step));
}

.ps-reduced-motion .ps-modal .ps-modal__serp-row--you {
	transform: translateY(calc(var(--ps-modal-step) * -2));
}

.ps-reduced-motion .ps-modal .ps-modal__serp-pos-strip {
	transform: translateY(-50%);
}

.ps-reduced-motion .ps-modal,
.ps-reduced-motion .ps-modal.ps-modal--settled::before,
.ps-reduced-motion .ps-modal::backdrop,
.ps-reduced-motion .ps-modal [class*="ps-modal__"],
.ps-reduced-motion .ps-modal [class*="ps-modal__"]::before,
.ps-reduced-motion .ps-modal [class*="ps-modal__"]::after,
.ps-reduced-motion .ps-modal .ps-form-submit-button::before,
.ps-reduced-motion .ps-modal .ps-columns > *,
.ps-reduced-motion .ps-modal .ps-form-actions {
	animation: none !important;
	transition: none !important;
}
