/*
Theme Name: SP Media 2026
Theme URI: https://www.kadencewp.com/
Description: Child theme for Kadence
Author: SP-Media
Author URI: https://spmedia.pl/
Template: kadence
Version: 1.0.0
*/

.site-header-top-section-left .header-html-inner {
	display: flex;
	align-items: center;
	gap: 20px;
}


.site-header-top-section-left .header-html-inner p {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0;
}
.site-top-header-wrap .social-icon-custom-svg svg path, .footer-social-inner-wrap .social-icon-custom-svg svg path {
	fill: white;
}
.site-top-header-wrap .header-social-wrap .header-social-inner-wrap a, .footer-social-inner-wrap .social-button {
	height: 32px;
	width: 32px;
	margin-left: 10px;
}
.site-footer .footer-social-wrap .footer-social-inner-wrap {gap: 0;}


.wp-block-kadence-advancedbtn .kb-button.kt-btn-has-svg-true {
	background: none;
	padding: 10px 20px 10px 12px;
	position: relative;
}


.wp-block-kadence-advancedbtn .kb-button.kt-btn-has-svg-true:hover {
	background: none;
	color: white;
}

.wp-block-kadence-advancedbtn .kb-button.kt-btn-has-svg-true:hover::after {
	max-width: 100%;
}

.wp-block-kadence-advancedbtn .kb-button.kt-btn-has-svg-true::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	background: var(--global-palette1);
	width: 100%;
	max-width: 48px;
	transition: max-width .4s linear;
	height: 100%;
	border-radius: 3px;
}
.wp-block-kadence-advancedbtn .kb-button.kt-btn-has-svg-true.btn-bg-white::after {
	background: var(--global-palette9);
}
.wp-block-kadence-advancedbtn .kb-button.kt-btn-has-svg-true.btn-bg-white svg {
	stroke: var(--global-palette1);
}
.wp-block-kadence-advancedbtn .kb-button.kt-btn-has-svg-true.btn-bg-white:hover span {
	color: var(--global-palette1);
}
.wp-block-kadence-advancedbtn .kb-button.kt-btn-has-svg-true span {
	position: relative;
	z-index: 2;
}
.wp-block-kadence-advancedbtn .kb-button.kt-btn-has-svg-true span.kb-svg-icon-wrap {
	margin-right: 20px;
	color: white;
	transform: rotate(-45deg);
	transition: transform .4s linear;
}

.wp-block-kadence-advancedbtn .kb-button.kt-btn-has-svg-true:hover span.kb-svg-icon-wrap {
	transform: rotate(0);
}
.sp-title {
	position: relative;
	display: inline-block;
}

.sp-title::before {
	content: '';
	display: block;
	width: 77px;
	height: 77px;
	background-image: url('/wp-content/uploads/2025/12/sp.svg');
	position: absolute;
	top: 50%;
	left: 0;
	transform: translate(-50%, -50%);
}
.sp-title::after {
	content: '';
	background: white;
	position:absolute;
	top: -64px;
	right: -116px;
	width: 50vw;
	display: block;
	height: 283px;
	z-index: -1;
}

.sp-title-white {
	position: relative; 
	color: white
}
.sp-title-white::before {
	content: '';
	display: block;
	width: 77px;
	height: 77px;
	background-image: url('/wp-content/uploads/2026/03/sp-logo-white.svg');
	position: absolute;
	top: 50%;
	left: 0;
	transform: translate(-50%, -50%);
}
.black-square-br::after {
	content: '';
	background: #0A0A0A;
	position: absolute;
	bottom: 0;
	right: 0;
	display: block;
	width: 200px;
	height: 200px;
}

.black-square-tr::after {
	content: '';
	background: #0A0A0A;
	position: absolute;
	top: 0;
	right: 0;
	display: block;
	width: 200px;
	height: 200px;
}

@media (max-width: 767px) {
.black-square-tr::after {display: none;}
}

.title-icon-center {
	position: relative;
}

.title-icon-center svg {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}
.title-icon-left {
	position: relative;
	padding-left: 2rem;
}
.title-icon-left svg {
	position: absolute;
	top: 50%;
	left: 0;
	transform: translateY(-50%);
}


.offer-section img {
	filter: grayscale(1);
	transition: all .4s linear;
	transform-origin: bottom center;
}
.offer-section-image-right img {
	transform-origin: bottom right;
}

.offer-section .kt-inside-inner-col {
	transition: background-color .4s linear;
}


@media (min-width:1024px) {
	.offer-section-title {
		transition: all .4s linear;
		transform: translateY(1rem);
	}
	.offer-section .offer-section-desc{
		visibility: hidden;
	}
	.offer-section .kb-section-has-link:hover .offer-section-desc {
		visibility: visible;
	}
	.offer-section .kb-section-has-link:hover img {
		filter: grayscale(0);
		transform: scale(1.05);
	}
	.offer-section .kb-section-has-link:hover .offer-section-image > .kt-inside-inner-col {
		background-color: var(--global-palette1);	
	}
	.offer-section .kb-section-has-link:hover .offer-section-title {
		transform: translateY(0);
	}
}


.how-we-work-person {
	position: absolute;
	right: 0;
	bottom: 0;
	max-width: 20vw;
	z-index:2;
	transform: translate(3.2rem, 3.5rem);
}
.z-2 {
	z-index: 2;
	position: relative;
}
.z-3 {
	z-index: 3;
	position: relative;
}

.person {
	aspect-ratio: 1;
	overflow: hidden;
	position: relative;
}
.person::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 50%;
	display: block;
	background: linear-gradient(360deg, #FF9F1C 0%, rgba(255, 159, 28, 0.1) 77.4%, rgba(255, 159, 28, 0) 100%);
	transition: all .4s linear;
}
.person:hover::after {
	height: 100%;
	background: linear-gradient(0deg,rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.56) 79%, rgba(0, 0, 0, 0) 100%);
}
.person .kt-inside-inner-col {
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}
.person .wp-block-kadence-advancedheading {
	position: relative;
	z-index: 2;
}
.person p {
	margin-bottom: 0 !important;
}
.person-description {
	max-height: 0;
	overflow: hidden;
	transition: max-height .4s linear;
}
.person:hover .person-description {
	max-height: 70%;
}
.bg-rounded-top {
	position: relative;
}
.bg-rounded-top::before {
	position: absolute;
	top: -20px;
	width: calc(50% - 16px);
	right: 0;
	height: 20px;
	background: white;
	content: '';
	display: block;
	z-index:2;
}

@media screen and (max-width: 767px) {
  /* Przyciemnienie zdjęcia osoby */
    .person::after {
	height: 100%;
	background: linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.56) 79%, rgba(0, 0, 0, 0) 100%);
  }

  .person .wp-block-kadence-advancedheading,
  .person .person-description {
    position: relative;
    z-index: 3;
  }

  /* Opis widoczny od razu na mobile */
  .person-description,
  .person:hover .person-description {
    display: block;
    visibility: visible;
    opacity: 1;
    max-height: 70%;
    overflow: visible;
    transform: none;
  }


  /* Wyłączenie animacji opisu na urządzeniach dotykowych */
  .person-description {
    transition: none;
  }
}

.section {
	position: relative;
	min-height: 180px;
}
.section::before {
	font-size: 128px;
	font-weight: 900;
	position: absolute;
	opacity: .2;
	top: 0;
	left: 0;
	transform: translateY(-50%);
	color: rgba(173, 158, 204, .6);
}
.section .kb-svg-icon-wrap {
	background: white;
	width: 52px;
	height: 52px;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 50px;
	box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.1);
	margin-right: 10px;
}
.section1::before {
	content: '01';
}
.section2::before {
	content: '02';
}
.section3::before {
	content: '03';
}
.section4:before {
	content: '04'
}
.section5:before {
	content: '05'
}
.section1::after, .section3::after, .section4::after {
	content: '';
	position: absolute;
	left: 26px;
	top: 52px;
	width: 1px;
	height: 100%;
	border-left: 2px dashed var(--global-palette6);
}

@media (max-width:767px){
.section2::after {
	content: '';
	position: absolute;
	left: 26px;
	top: 52px;
	width: 1px;
	height: calc(100% + 3rem);
	border-left: 2px dashed var(--global-palette6);
}

}

#rank-math-faq .rank-math-list-item {
	background: white;
	border-radius: 20px;
	padding: 0 2rem;
	counter-increment: faq-counter;
	position: relative;
}
#rank-math-faq .rank-math-question {
	margin-left: 4rem;
	margin-bottom: 2rem;
	margin-top: .4rem;
}
#rank-math-faq .rank-math-list {
	counter-reset: faq-counter;
	list-style-type: none;
}
#rank-math-faq .rank-math-list-item::before {
	color: var(--global-palette3);
	content: counter(faq-counter, decimal-leading-zero); 
  position: absolute;
  left: 30px;
  top: 0;
  background: var(--global-palette1);
  color: var(--global-palette3);
  width: 60px;
  height: 60px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 2.1rem;
}

ul.price-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.price-list > li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
}

ul.price-list > li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 24px;
  line-height: 1;
  color: var(--global-palette1);
}

ul.price-list ul {
  margin-top: 20px !important;
	margin-left: -30px !important;
	padding-left: 0;
}

ul.price-list ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
}

ul.price-list ul li::before {
  content: "+";
  position: absolute;
  left: 0;
  top: -2px;
  font-size: 24px;
  line-height: 1;
  font-weight: 400;
  color: var(--global-palette1);
}

.last-section h3 {
	margin-top:0 !important;
	padding-top: 8px;
	text-transform: uppercase;
}

.case-study-list li strong {
	color: var(--global-palette1);
}
.step {
white-space: nowrap;
}

textarea {
resize: none; 
}
/* Dostępność: kontrast przycisku formularza (biały na #ff9f1c miał 2,05:1) */
.kb-adv-form-field .kb-button .kt-btn-inner-text {
    color: #1f1538;
}

/* Dostępność: kropki slidera w odstępie 24 px (wymóg rozmiaru celu dotyku) */
ul.splide__pagination .splide__pagination__page {
    margin: 7px;
}

/* Dostępność: linki w spisie treści Rank Math (pomarańczowy #ff9f1c na bieli miał 2,05:1) */
#rank-math-toc a {
    color: #b35900;
}

/* Dostępność: pole zgody MailerLite ma mieć obszar dotyku min. 24 px */
.ml-form-embedPermissionsOptionsCheckbox input[type="checkbox"] {
    width: 24px;
    height: 24px;
}

/* Dostępność: pomarańcz #ff6900 z treści wpisów miał kontrast 2,88:1 na bieli (tekst) i z bielą (tło) */
body .has-luminous-vivid-orange-color,
body mark.has-inline-color[style*="#ff6900"] {
    color: #c24e00 !important;
}
body .has-luminous-vivid-orange-background-color.has-white-color {
    background-color: #c24e00 !important;
}

/* Dostępność: linki kategorii/autora w nagłówku wpisu (#ff9f1c i #777 nie dawały 4,5:1 na bieli) */
a.category-link-wszystkie {
    color: #b35900;
}
.kt-blocks-post-author-link,
.kt-blocks-author-pretext {
    color: #595959;
}

/* Dostępność: linki w okruszkach i liście popularnych wpisów (#ff9f1c na jasnym tle miał ok. 2:1) */
.wp-block-breadcrumbs a,
.wpp-list .wpp-post-title {
    color: #b35900;
}
.wpp-list li .wpp-item-data a.wpp-post-title {
    color: #b35900;
}
