/* 
Theme Name: Blisko.Online
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Lekki motyw potomny dla Hello Elementor, stworzony przez Freeline, aby bezpiecznie rozwijać wygląd strony bez nadpisywania zmian po aktualizacjach.
Author: Freeline
Author URI: https://freeline.pl/
Template: hello-elementor
Version: 1.0.1
Text Domain: blisko-theme
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/
body p:last-of-type {
	margin-bottom: 0px;
}
.accent-text{
	color: var(--e-global-color-accent);
}


.accent-text-2{
	color: var(--e-global-color-highlight);
}

.accent-text-3{
	color: var(--e-global-color-career);
}

.blur-box{
	border: 1px solid var(--e-global-color-border);
	background-color: rgba(255,255,255,0.7);
	backdrop-filter: blur(3px);
	padding: 48px;
	border-radius: 24px;
}

.profile-pic{
	position: relative;
	overflow: hidden;
	-webkit-transform: translateZ(0);
	transform: translateZ(0);
	/* iOS: overflow+radius alone often fails to clip <video>/<img> */
	-webkit-mask-image: -webkit-radial-gradient(white, black);
	mask-image: radial-gradient(white, black);
}

/* Overlay matches padded photo (absolute inset ignores parent padding) */
.profile-pic .elementor-widget-shortcode{
	position: absolute;
	inset: 0;
	box-sizing: border-box;
	padding: inherit;
	margin: 0;
	pointer-events: none;
	z-index: 1;
}

.profile-pic .elementor-shortcode{
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	overflow: hidden;
	/* Single: large radius to sit inside padded card curve (not 24px — corners poke out) */
	border-radius: 48px;
	-webkit-transform: translateZ(0);
	transform: translateZ(0);
	-webkit-mask-image: -webkit-radial-gradient(white, black);
	mask-image: radial-gradient(white, black);
}

.profile-pic .profile-machajka{
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	opacity: 0;
	transition: opacity .35s ease;
	border-radius: 48px;
}

/* Loop card: only top corners rounded */
.e-loop-item .profile-pic .elementor-shortcode,
.e-loop-item .profile-pic .profile-machajka{
	border-radius: 24px 24px 0 0;
}

/* Visible while the hover clip is playing */
.profile-pic.is-playing .profile-machajka{
	opacity: 1;
}

@media (hover: hover) and (pointer: fine){
	.profile-pic:hover .profile-machajka{
		opacity: 1;
	}
}

/* Rich text inside specialist cards — in-content headings stay below section titles */
.blur-box .elementor-widget-text-editor h2,
.blur-box .elementor-widget-text-editor h3{
	color: var(--e-global-color-primary);
	font-family: var(--e-global-typography-hsm-font-family), Arial, sans-serif;
	font-size: var(--e-global-typography-hsm-font-size);
	font-weight: var(--e-global-typography-hsm-font-weight);
	line-height: var(--e-global-typography-hsm-line-height);
	letter-spacing: var(--e-global-typography-hsm-letter-spacing);
	margin: 1.5em 0 0.5em;
}

.blur-box .elementor-widget-text-editor h2:first-child,
.blur-box .elementor-widget-text-editor h3:first-child{
	margin-top: 0;
}

.blur-box .elementor-widget-text-editor h4,
.blur-box .elementor-widget-text-editor h5,
.blur-box .elementor-widget-text-editor h6{
	color: var(--e-global-color-primary);
	font-family: var(--e-global-typography-label-font-family), Arial, sans-serif;
	font-size: var(--e-global-typography-label-font-size);
	font-weight: var(--e-global-typography-label-font-weight);
	line-height: var(--e-global-typography-label-line-height);
	margin: 1.25em 0 0.4em;
}

.blur-box .elementor-widget-text-editor p,
.blur-box .elementor-widget-text-editor li{
	font-family: var(--e-global-typography-text-font-family), Arial, sans-serif;
	font-size: var(--e-global-typography-text-font-size);
	font-weight: var(--e-global-typography-text-font-weight);
	line-height: var(--e-global-typography-text-line-height);
	color: var(--e-global-color-text);
}

.blur-box .elementor-widget-text-editor ul,
.blur-box .elementor-widget-text-editor ol{
	margin: 0.5em 0 1em;
	padding-left: 1.25em;
}

.blur-box .elementor-widget-text-editor li + li{
	margin-top: 0.35em;
}

.blisko-yt{
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 24px;
	background: var(--e-global-color-surfacesoft, #F6F3ED);
}

.blisko-yt iframe{
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.blisko-medfile #medfile-register-widget,
.blisko-medfile iframe{
	width: 100%;
	min-height: 720px;
	border: 0;
}

@supports (corner-shape: squircle){
	.blisko-yt{
		border-radius: 99px;
		corner-shape: squircle;
	}
}


.btn a{
	border-radius: 24px;
	padding: 12px 24px;
	border: 1px solid var(--e-global-color-secondary);
}


.btn.btn-xl a{	
	padding: 20px 40px;
}

.btn.btn-xl a span.elementor-button-text{
	font-size: var(--e-global-typography-lead-font-size);
	font-weight: 500;
	
}

.btn.btn-primary a{
	background-color: var(--e-global-color-secondary);
	border-color: var(--e-global-color-secondary);
}

.btn.btn-primary a:hover{
	background-color: var(--e-global-color-secondaryhover);
	border-color: var(--e-global-color-secondaryhover);
}

.btn.btn-ghost a{
	background-color: rgba(255,255,255,0.6);
	backdrop-filter:blur(3px);
	color:  var(--e-global-color-accent);
	border-color:  var(--e-global-color-accent);
}

.btn.btn-ghost a:hover{
	background-color: var(--e-global-color-secondaryhover);
	border-color: var(--e-global-color-secondaryhover);
}

.btn.btn-accent a{
	background-color: var(--e-global-color-accent);
	border-color: var(--e-global-color-accent);
}

.btn.btn-accent a:hover{
	background-color: var(--e-global-color-secondaryhover);
	border-color: var(--e-global-color-secondaryhover);
}


.btn.btn-secondary a{
		background-color: var(--e-global-color-highlight);
	border-color: var(--e-global-color-highlight);
	
}
.btn.btn-secondary a:hover{
		background-color: var(--e-global-color-highlighthover);
	border-color: var(--e-global-color-highlighthover);
	
}

.btn.btn-career a{
	background-color: var(--e-global-color-career);
	border-color: var(--e-global-color-career);
}

.btn.btn-career a:hover{
	background-color: var(--e-global-color-careerhover);
	border-color: var(--e-global-color-careerhover);
}



.elementor-widget-icon-box:not(:has(.elementor-icon-box-title)){
	display: none;
}

.specjalizacje-wrapper>span{
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-content: flex-start;
	gap: 8px;
}

#tresc-artykulu h2 {
	font-size: var(--e-global-typography-secondary-font-size);
	font-weight: 700;
	line-height: var(--e-global-typography-secondary-line-height);
	margin: 2.5rem 0 0.75rem;
}

#tresc-artykulu > h2:first-child {
	margin-top: 0;
}

#tresc-artykulu h3 {
	font-size: var(--e-global-typography-hsm-font-size);
	font-weight: var(--e-global-typography-hsm-font-weight);
	line-height: var(--e-global-typography-hsm-line-height);
	margin: 1.75rem 0 0.5rem;
}

#tresc-artykulu ul,
#tresc-artykulu ol {
	margin: 0.35rem 0 1rem;
	padding-left: 1.4em;
}

#tresc-artykulu li + li {
	margin-top: 0.35em;
}

#tresc-artykulu a:not(.wp-block-button__link) {
	color: var(--e-global-color-primary);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	overflow-wrap: anywhere;
}

#tresc-artykulu a:not(.wp-block-button__link):hover {
	color: var(--e-global-color-accent);
}

#tresc-artykulu .wp-block-buttons {
	margin: 0.25rem 0 0.5rem;
}

#tresc-artykulu .wp-block-button__link {
	display: inline-block;
	background-color: var(--e-global-color-primary);
	border: 1px solid var(--e-global-color-primary);
	border-radius: 24px;
	padding: 12px 24px;
	color: var(--e-global-color-white);
	font-family: var(--e-global-typography-accent-font-family), Poppins, Arial, sans-serif;
	font-size: var(--e-global-typography-accent-font-size);
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
}

#tresc-artykulu .wp-block-button__link:hover {
	background-color: var(--e-global-color-primaryhover);
	border-color: var(--e-global-color-primaryhover);
	color: var(--e-global-color-white);
}

@supports (corner-shape: squircle) {
	#tresc-artykulu .wp-block-button__link {
		border-radius: 99px;
		corner-shape: squircle;
	}
}

#tresc-artykulu h2,
#tresc-artykulu h3 {
	scroll-margin-top: 160px;
}

/* Polityka prywatności — ten sam rytm co długie teksty w serwisie */
.elementor-widget.blisko-hero-lead{
	width: min(100%, 40rem);
	max-width: 40rem;
	margin-left: auto;
	margin-right: auto;
	align-self: center;
}

.blisko-legal .elementor-widget-text-editor ul,
.blisko-legal .elementor-widget-text-editor ol{
	margin: 0.25rem 0 0.15rem;
	padding-left: 1.35em;
}

.blisko-legal .elementor-widget-text-editor li + li{
	margin-top: 0.45em;
}

.blisko-legal .elementor-widget-text-editor a{
	color: var(--e-global-color-primary);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	overflow-wrap: anywhere;
}

.blisko-legal .elementor-widget-text-editor a:hover{
	color: var(--e-global-color-accent);
}

.blisko-legal .elementor-heading-title{
	scroll-margin-top: 160px;
}

.blisko-legal .elementor-toc{
	border: 1px solid var(--e-global-color-border);
	background: rgba(255, 255, 255, 0.72);
	border-radius: 24px;
	padding: 28px 32px;
}

.blisko-legal .elementor-toc__header-title{
	color: var(--e-global-color-primary);
	font-family: var(--e-global-typography-hsm-font-family), Poppins, sans-serif;
	font-weight: 600;
}

.blisko-legal .elementor-toc__list-item-text{
	color: var(--e-global-color-text);
	font-family: var(--e-global-typography-text-font-family), Inter, sans-serif;
}

.blisko-legal .elementor-toc__list-item-text:hover{
	color: var(--e-global-color-accent);
}

.blisko-legal .blur-box:hover{
	translate: none;
	box-shadow: none;
}

@supports (corner-shape: squircle){
	.blisko-legal .elementor-toc{
		border-radius: 99px;
		corner-shape: squircle;
	}
}

@media (max-width: 767px){
	.blisko-legal .elementor-toc{
		padding: 20px 18px;
	}
}

@media (min-width: 1025px) {
	.elementor-562 .elementor-element-8c2c4de {
		flex-direction: row;
		align-items: flex-start;
		gap: 40px;
	}

	.elementor-562 .blisko-post-main {
		flex: 1 1 auto;
		min-width: 0;
		max-width: 760px;
	}

	.elementor-562 .blisko-post-side {
		flex: 0 0 320px;
		width: 320px;
		position: sticky;
		top: 156px;
		align-self: flex-start;
		display: flex;
		flex-direction: column;
		gap: 16px;
	}

	.elementor-562 .blisko-post-side .elementor-widget-table-of-contents {
		flex: 1 1 auto;
		min-height: 0;
		display: flex;
		flex-direction: column;
	}

	.elementor-562 .blisko-post-side .elementor-widget-container,
	.elementor-562 .blisko-post-side .elementor-toc {
		min-height: 0;
		display: flex;
		flex-direction: column;
		height: 100%;
	}

	.elementor-562 .blisko-post-side .elementor-toc__body {
		overflow: auto;
		min-height: 0;
	}

	.elementor-562 .blisko-post-side .blisko-post-end {
		flex: 0 0 auto;
	}
}

@media (max-width: 1024px) {
	.elementor-562 .elementor-element-8c2c4de {
		flex-direction: column;
	}

	.elementor-562 .blisko-post-side {
		display: contents;
	}

	.elementor-562 .blisko-post-side > .elementor-widget-table-of-contents {
		order: 1;
	}

	.elementor-562 .blisko-post-main {
		order: 2;
	}

	.elementor-562 .blisko-post-side > .blisko-post-end {
		order: 3;
		margin-top: 32px;
	}
}

.elementor-562 .elementor-toc__header {
	justify-content: flex-start;
	gap: 8px;
}

.elementor-562 .elementor-toc__toggle-button {
	order: -1;
}

.elementor-562 .elementor-element-a1b74fd {
	align-items: center;
}

.elementor-562 .elementor-element-b1autor1,
.elementor-562 .elementor-element-b1autor1 .elementor-widget-container,
.elementor-562 .elementor-element-582ff2e,
.elementor-562 .elementor-element-582ff2e .elementor-widget-container,
.elementor-562 .elementor-element-582ff2e .elementor-icon-list-items {
	display: flex;
	align-items: center;
	line-height: 1;
}

.elementor-562 .blisko-artykul-autor {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--e-global-color-primary);
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
}

.elementor-562 .blisko-artykul-autor:hover {
	color: var(--e-global-color-accent);
}

.elementor-562 .blisko-artykul-autor .blisko-artykul-autor__photo {
	width: 18px;
	height: 18px;
	max-width: 18px;
	border-radius: 50%;
	object-fit: cover;
}

html:has(.elementor-562) {
	scroll-behavior: smooth;
}

.blisko-autor-sekcja {
	scroll-margin-top: 140px;
}

.blisko-autor-sekcja__title,
.blisko-autor-kalendarz h3 {
	margin: 0 0 1.25rem;
	color: var(--e-global-color-primary);
	font-family: var(--e-global-typography-primary-font-family), Poppins, sans-serif;
	font-weight: 600;
	line-height: 1.2;
}

.blisko-autor-sekcja__title {
	font-size: var(--e-global-typography-primary-font-size, 2rem);
}

.blisko-autor-karta {
	display: flex;
	align-items: flex-start;
	gap: 1.25rem;
	margin-bottom: 2.5rem;
}

.elementor-562 .blisko-autor-karta .blisko-autor-karta__photo {
	width: 96px;
	height: 96px;
	max-width: 96px;
	flex: 0 0 auto;
	object-fit: cover;
	border-radius: 12px;
}

.blisko-autor-karta__name {
	margin: 0 0 0.35rem;
	font-weight: 700;
}

.blisko-autor-karta__name a {
	color: var(--e-global-color-primary);
	text-decoration: none;
}

.blisko-autor-karta__name a:hover {
	color: var(--e-global-color-accent);
}

.blisko-autor-karta__bio {
	margin: 0;
}

.blisko-autor-karta__bio p {
	margin: 0;
}

.blisko-autor-kalendarz {
	max-width: 720px;
}

.blisko-autor-kalendarz p {
	margin: 0 0 1rem;
}
    



/*
 * Loop cards: natural pill height (no empty 2nd row),
 * footer pinned to bottom so price/buttons stay aligned.
 */
.e-loop-item .elementor-element-04ec057{
	height: 100%;
}

.e-loop-item .elementor-element-04ec057 > .elementor-widget-divider{
	margin-top: auto;
}

.e-loop-item .specjalizacje-wrapper > span{
	--blisko-pill-row: 37px;
	max-height: calc(2 * var(--blisko-pill-row) + 8px);
	overflow: hidden;
}

/*
 * Post loop tile: zoom only the background photo.
 * The card, radius and category pill stay the same size.
 */
@media (hover: hover) and (pointer: fine){
	.elementor-600 .elementor-element-045483c{
		overflow: hidden;
	}

	.elementor-600 .elementor-element-045483c::after{
		content: "";
		position: absolute;
		inset: 0;
		background-image: inherit;
		background-position: center center;
		background-repeat: no-repeat;
		background-size: cover;
		transform: scale(1);
		transform-origin: center center;
		transition: transform 0.6s ease;
		z-index: 0;
		pointer-events: none;
	}

	.elementor-600:hover .elementor-element-045483c::after{
		transform: scale(1.08);
	}
}

.specjalizacje-wrapper>span>span{
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 0.8em;
	background-color: var(--e-global-color-surfacesoft);
	border: 1px solid var(--e-global-color-border);
	word-break:nowrap;
	white-space:nowrap;
}



/* iOS fallback — squircle unsupported, keep regular radius + clip media */
.corner-squircle{
	border-radius: 24px;
	overflow: hidden;
	-webkit-transform: translateZ(0);
	transform: translateZ(0);
}

.corner-squircle .profile-pic{
	border-radius: 24px 24px 0 0;
	overflow: hidden;
}

.corner-squircle.profile-pic{
	border-radius: 48px;
	overflow: hidden;
}

.corner-squircle img,
.corner-squircle video,
.profile-pic img,
.profile-pic video{
	border-radius: inherit;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.profile-pic > .elementor-widget-image{
	overflow: hidden;
	border-radius: 48px;
	-webkit-transform: translateZ(0);
	transform: translateZ(0);
	-webkit-mask-image: -webkit-radial-gradient(white, black);
	mask-image: radial-gradient(white, black);
}

.profile-pic > .elementor-widget-image img{
	border-radius: 48px;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.e-off-canvas__content:has(.corner-squircle){
	border-radius: 24px;
	overflow: hidden;
}

/* .corner-squircle .elementor-icon-box-wrapper, */
.corner-squircle-icon .elementor-icon-box-icon{
	border-radius: 24px;
	overflow: hidden;
}

@supports (corner-shape: squircle){
	.corner-squircle{
		border-radius: 99px !important;
		corner-shape: squircle;
	}

	.corner-squircle .profile-pic{
		border-radius: 99px 99px 0 0;
		corner-shape: squircle;
	}

	.corner-squircle.profile-pic{
		border-radius: 99px;
		corner-shape: squircle;
	}

	.corner-squircle img,
	.corner-squircle video,
	.profile-pic img,
	.profile-pic video{
		border-radius: inherit !important;
		corner-shape: squircle;
	}

	.profile-pic > .elementor-widget-image,
	.profile-pic > .elementor-widget-image img,
	.profile-pic .elementor-shortcode,
	.profile-pic .profile-machajka{
		border-radius: 80px;
		corner-shape: squircle;
	}

	.e-loop-item .profile-pic .elementor-shortcode,
	.e-loop-item .profile-pic .profile-machajka{
		border-radius: 99px 99px 0 0;
		corner-shape: squircle;
	}

	.e-off-canvas__content:has(.corner-squircle){
		border-radius: 99px !important;
		corner-shape: squircle;
	}

/* 	.corner-squircle .elementor-icon-box-wrapper, */
	.corner-squircle-icon .elementor-icon-box-icon{
		border-radius: 99px;
		corner-shape: squircle;
	}

	.btn a,
	.e-form__buttons button{
		border-radius: 99px !important;
		corner-shape: squircle;
	}
}



@media (max-width: 991px){
	.blur-box{
		padding: 24px;
	}	
	.blur-box.corner-squircle{
		padding: 32px;
	}
}

.blisko-team-card.blur-box,
.blisko-team-card.blur-box.corner-squircle{
	padding: 24px;
	height: 100%;
}

.blisko-team-card .elementor-heading-title{
	margin: 0;
}

.blisko-team-id{
	flex: 1 1 auto;
	min-width: 0;
}

.blisko-team-photo{
	flex: 0 0 72px;
	width: 72px;
}

.blisko-team-photo img{
	width: 72px;
	height: 72px;
	max-width: 72px;
	object-fit: cover;
	border-radius: 50% !important;
	corner-shape: unset;
	display: block;
}




.sib-input input{
	font-size: 14px!important;
	padding: 12px!important;
}
.sib-optin{
	margin-top: 14px;
	margin-bottom: 8px;
}

.elementor-677 .elementor-element-85bbb1c > .e-con > .elementor-widget-button{
	margin-top: auto;
}

.blisko-kontakt-oferta{
	container-type: inline-size;
	container-name: kontakt;
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 100%;
	margin: 0;
}

.blisko-kontakt-oferta__main{
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.blisko-kontakt-oferta__person{
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
}

.elementor img.blisko-kontakt-oferta__photo{
	width: 80px;
	height: 80px;
	max-width: 80px;
	flex: 0 0 auto;
	object-fit: cover;
	border-radius: 50%;
	display: block;
}

.blisko-kontakt-oferta__name{
	margin: 0;
	color: var(--e-global-color-primary);
	font-family: var(--e-global-typography-primary-font-family), Poppins, sans-serif;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.3;
}

.blisko-kontakt-oferta__role{
	margin: 2px 0 0;
	color: var(--e-global-color-text);
	font-size: 0.95rem;
	line-height: 1.4;
}

.blisko-kontakt-oferta__desc{
	margin: 0;
	min-width: 0;
	color: var(--e-global-color-text);
}

.blisko-kontakt-oferta__desc p{
	margin: 0;
}

.blisko-kontakt-oferta__actions{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.blisko-kontakt-oferta__actions .btn{
	width: auto;
}

@container kontakt (min-width: 640px){
	.blisko-kontakt-oferta__main{
		flex-direction: row;
		align-items: center;
		gap: 40px;
	}

	.blisko-kontakt-oferta__person{
		flex: 1 1 360px;
		min-width: min(100%, 300px);
		max-width: 460px;
	}

	.blisko-kontakt-oferta__desc{
		flex: 1 1 240px;
	}
}

/*
 * Process timeline (Elementor widget: Oś czasu procesu).
 * Brand defaults live here. Widget style controls override them.
 */
.blisko-timeline{
	--blisko-tl-line: var(--e-global-color-borderstrong, #CBC8C0);
	--blisko-tl-gap: 32px;
	--blisko-tl-number-size: 56px;
	position: relative;
	display: flex;
	gap: var(--blisko-tl-gap);
	list-style: none;
	margin: 0;
	padding: 0;
}

.blisko-timeline__step{
	position: relative;
	min-width: 0;
}

.blisko-timeline__number{
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: var(--blisko-tl-number-size);
	height: var(--blisko-tl-number-size);
	border-radius: 50%;
	background-color: var(--e-global-color-primary, #193340);
	color: var(--e-global-color-white, #fff);
	font-family: var(--e-global-typography-primary-font-family), Poppins, sans-serif;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1;
}

.blisko-timeline__title{
	margin: 16px 0 0;
	color: var(--e-global-color-primary, #193340);
	font-family: var(--e-global-typography-hsm-font-family), Poppins, sans-serif;
	font-size: var(--e-global-typography-hsm-font-size);
	font-weight: var(--e-global-typography-hsm-font-weight);
	line-height: var(--e-global-typography-hsm-line-height);
	letter-spacing: var(--e-global-typography-hsm-letter-spacing);
	text-wrap: balance;
}

.blisko-timeline__description{
	margin: 8px 0 0;
	color: var(--e-global-color-textsecondary, #5E6A6E);
	font-family: var(--e-global-typography-text-font-family), Arial, sans-serif;
	font-size: var(--e-global-typography-text-font-size);
	font-weight: var(--e-global-typography-text-font-weight);
	line-height: var(--e-global-typography-text-line-height);
}

.blisko-timeline.is-horizontal{
	align-items: flex-start;
}

.blisko-timeline.is-horizontal .blisko-timeline__step{
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.blisko-timeline.is-horizontal:not(.is-single)::before{
	content: "";
	position: absolute;
	z-index: 0;
	top: calc(var(--blisko-tl-number-size) / 2 - 1px);
	left: calc((100% - (var(--blisko-tl-count) - 1) * var(--blisko-tl-gap)) / var(--blisko-tl-count) / 2);
	right: calc((100% - (var(--blisko-tl-count) - 1) * var(--blisko-tl-gap)) / var(--blisko-tl-count) / 2);
	height: 2px;
	background: var(--blisko-tl-line);
	border-radius: 2px;
}

.blisko-timeline.is-vertical{
	flex-direction: column;
	gap: 0;
}

.blisko-timeline.is-vertical .blisko-timeline__step{
	display: grid;
	grid-template-columns: var(--blisko-tl-number-size) minmax(0, 1fr);
	column-gap: 20px;
	align-items: start;
	text-align: left;
	padding-bottom: 32px;
}

.blisko-timeline.is-vertical .blisko-timeline__step:last-child{
	padding-bottom: 0;
}

.blisko-timeline.is-vertical .blisko-timeline__content{
	padding-top: 12px;
}

.blisko-timeline.is-vertical .blisko-timeline__title{
	margin-top: 0;
}

.blisko-timeline.is-vertical:not(.is-single) .blisko-timeline__step:not(:last-child)::before{
	content: "";
	position: absolute;
	z-index: 0;
	top: var(--blisko-tl-number-size);
	bottom: 0;
	left: calc(var(--blisko-tl-number-size) / 2 - 1px);
	width: 2px;
	background: var(--blisko-tl-line);
	border-radius: 2px;
}

.blisko-timeline.is-tree{
	--blisko-tl-step-gap: 36px;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
}

.blisko-timeline.is-tree .blisko-timeline__step{
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--blisko-tl-number-size) minmax(0, 1fr);
	column-gap: 28px;
	align-items: center;
	padding-bottom: var(--blisko-tl-step-gap);
}

.blisko-timeline.is-tree .blisko-timeline__step:last-child{
	padding-bottom: 0;
}

.blisko-timeline.is-tree .blisko-timeline__number{
	grid-column: 2;
	grid-row: 1;
	justify-self: center;
	align-self: center;
}

.blisko-timeline.is-tree .blisko-timeline__content{
	grid-row: 1;
}

.blisko-timeline.is-tree .blisko-timeline__step:nth-child(odd) .blisko-timeline__content{
	grid-column: 1;
	text-align: right;
}

.blisko-timeline.is-tree .blisko-timeline__step:nth-child(even) .blisko-timeline__content{
	grid-column: 3;
	text-align: left;
}

.blisko-timeline.is-tree .blisko-timeline__title{
	margin-top: 0;
}

.blisko-timeline.is-tree:not(.is-single) .blisko-timeline__step:not(:last-child)::before,
.blisko-timeline.is-tree:not(.is-single) .blisko-timeline__step:not(:first-child)::after{
	content: "";
	position: absolute;
	z-index: 0;
	left: 50%;
	width: 2px;
	margin-left: -1px;
	background: var(--blisko-tl-line);
}

.blisko-timeline.is-tree:not(.is-single) .blisko-timeline__step:not(:last-child)::before{
	top: calc((100% - var(--blisko-tl-step-gap)) / 2);
	bottom: 0;
}

.blisko-timeline.is-tree:not(.is-single) .blisko-timeline__step:not(:first-child)::after{
	top: 0;
	height: calc((100% - var(--blisko-tl-step-gap)) / 2);
}

.blisko-timeline.is-tree:not(.is-single) .blisko-timeline__step:last-child::after{
	height: 50%;
}

@media (prefers-reduced-motion: no-preference){
	.blisko-timeline.is-animated .blisko-timeline__step{
		opacity: 0;
		transform: translateY(16px);
		transition-property: opacity, transform;
		transition-duration: 500ms;
		transition-timing-function: cubic-bezier(.22, 1, .36, 1);
	}

	.blisko-timeline.is-animated .blisko-timeline__step.is-visible{
		opacity: 1;
		transform: none;
	}

	.blisko-timeline.is-tree.is-animated .blisko-timeline__step:nth-child(odd){
		transform: translate(-18px, 12px);
	}

	.blisko-timeline.is-tree.is-animated .blisko-timeline__step:nth-child(even){
		transform: translate(18px, 12px);
	}

	.blisko-timeline.is-tree.is-animated .blisko-timeline__step.is-visible{
		transform: none;
	}
}

@media (max-width: 767px){
	.blisko-timeline{
		--blisko-tl-number-size: 48px;
	}

	.blisko-timeline.is-horizontal{
		flex-direction: column;
		gap: 0;
	}

	.blisko-timeline.is-horizontal:not(.is-single)::before{
		content: none;
	}

	.blisko-timeline.is-horizontal .blisko-timeline__step{
		display: grid;
		grid-template-columns: var(--blisko-tl-number-size) minmax(0, 1fr);
		column-gap: 16px;
		align-items: start;
		text-align: left;
		padding-bottom: 28px;
	}

	.blisko-timeline.is-horizontal .blisko-timeline__step:last-child{
		padding-bottom: 0;
	}

	.blisko-timeline.is-horizontal .blisko-timeline__content{
		padding-top: 8px;
	}

	.blisko-timeline.is-horizontal .blisko-timeline__title{
		margin-top: 0;
	}

	.blisko-timeline.is-horizontal:not(.is-single) .blisko-timeline__step:not(:last-child)::before{
		content: "";
		position: absolute;
		z-index: 0;
		top: var(--blisko-tl-number-size);
		bottom: 0;
		left: calc(var(--blisko-tl-number-size) / 2 - 1px);
		width: 2px;
		background: var(--blisko-tl-line);
		border-radius: 2px;
	}

	.blisko-timeline.is-tree{
		--blisko-tl-step-gap: 28px;
	}

	.blisko-timeline.is-tree .blisko-timeline__step{
		grid-template-columns: var(--blisko-tl-number-size) minmax(0, 1fr);
		column-gap: 16px;
		padding-bottom: var(--blisko-tl-step-gap);
	}

	.blisko-timeline.is-tree .blisko-timeline__number{
		grid-column: 1;
		justify-self: start;
	}

	.blisko-timeline.is-tree .blisko-timeline__step:nth-child(odd) .blisko-timeline__content,
	.blisko-timeline.is-tree .blisko-timeline__step:nth-child(even) .blisko-timeline__content{
		grid-column: 2;
		text-align: left;
	}

	.blisko-timeline.is-tree:not(.is-single) .blisko-timeline__step:not(:last-child)::before,
	.blisko-timeline.is-tree:not(.is-single) .blisko-timeline__step:not(:first-child)::after{
		left: calc(var(--blisko-tl-number-size) / 2 - 1px);
		margin-left: 0;
	}
}

@media (max-width: 767px) and (prefers-reduced-motion: no-preference){
	.blisko-timeline.is-tree.is-animated .blisko-timeline__step:nth-child(odd),
	.blisko-timeline.is-tree.is-animated .blisko-timeline__step:nth-child(even){
		transform: translateY(16px);
	}

	.blisko-timeline.is-tree.is-animated .blisko-timeline__step.is-visible{
		transform: none;
	}
}

/* ==========================================================================
   Wejścia przy scrollu i mikrointerakcje
   Sekcja bez animacji: klasa blisko-no-motion na kontenerze w Elementorze.
   ========================================================================== */

@media (prefers-reduced-motion: no-preference){
	.blisko-reveal:not(.is-in){
		opacity: 0;
		transform: translate3d(0, 18px, 0);
		pointer-events: none;
	}

	.blisko-reveal.is-in{
		animation: blisko-rise 640ms cubic-bezier(.22, 1, .36, 1) backwards;
		animation-delay: var(--blisko-d, 0ms);
	}

	.btn a{
		transition:
			background-color .2s ease,
			border-color .2s ease,
			color .2s ease,
			translate .28s cubic-bezier(.22, 1, .36, 1);
	}

	.blur-box{
		transition:
			translate .35s cubic-bezier(.22, 1, .36, 1),
			box-shadow .35s ease;
	}
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference){
	.btn a:hover{
		translate: 0 -2px;
	}

	.blur-box:hover{
		translate: 0 -4px;
		box-shadow: 0 16px 40px rgba(25, 51, 64, 0.08);
	}

	.e-loop-item{
		transition: translate .35s cubic-bezier(.22, 1, .36, 1);
	}

	.e-loop-item:hover{
		translate: 0 -4px;
	}
}

@keyframes blisko-rise{
	from{
		opacity: 0;
		transform: translate3d(0, 18px, 0);
	}
	to{
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
}

@media (prefers-reduced-motion: reduce), print{
	.blisko-reveal,
	.blisko-reveal:not(.is-in){
		opacity: 1 !important;
		transform: none !important;
		pointer-events: auto !important;
		animation: none !important;
	}
}