:root {
	--bg-color: #fcf1d4;
	--bg-color: #f2e5c2;
	--bg-color: #dfd4be;
	--bg-color: #ecddbe;
	--bg-color: #fff2d3;
/*	--bg-pattern: url("img/bg-noise.png");*/
	--text-color: #692020;
	--header-color: #122639;
	--header-color: #26364a;
}

html, body {
	font-family: Montserrat, sans-serif;
	color: var(--header-color);
	font-weight: 300;
	font-size: 18px;
	padding: 0;
	margin: 0;
	scroll-behavior: smooth;
}

.hidden {
	display: none !important;
}

#header {
	position: sticky;
	position: fixed;
	top: 0;
	width: 100%;
	background: transparent;
	background: var(--bg-color);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 20px;
	box-sizing: border-box;
	z-index: 9;
}

#header.sticky-header {
/*	background: var(--bg-pattern);*/
	background: var(--bg-color);
}

img#topLogo {
	width: auto;
	height: 50px !important;
}

/*
img#topLogo {
	height: 82px;
	transition: all 0.2s ease;
	transform-origin: top;
	position: absolute;
	top: 8px;
	left: 50%;
	margin-left: -150px;
	transform: scale(30%);
}
*/

/*
#header.sticky-header img#topLogo {
	transform: scale(30%);
}*/

nav {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-end;
	gap: 20px;
}

nav a {
	display: inline-block;
	text-decoration: none;
	color: var(--header-color);
	font-weight: 400;
	font-size: 16px;
}

a {
	color: var(--header-color);
}

h1, h3 {
	text-transform: uppercase;
}

h1, h2, h3, h4 {
	font-family: "Cormorant Infant", "Georgia", "Times New Roman", serif;
	font-weight: 400;
	color: var(--header-color);
}

hr {
	max-width: 100px;
	margin: 20px 0;
	border-color: var(--text-color);
}

h2 + hr,
.text-content:has(h2) hr {
	margin: 20px auto;
}

.text-content:has(h2) h1 {
	text-align: center;
}

p {
	color: var(--text-color);
	padding-bottom: 1em;
	margin: 0;
}

p + ul {
	margin-top: 0;
}

h1 {
	text-align: left;
	font-size: 50px;
	margin: 0;
}

h2 {
	text-align: center;
	font-size: 32px;
}

h3 {
	text-align: left;
	font-size: 24px;
}

.btn {
	display: inline-block;
	padding: 10px 30px;
	color: var(--bg-color);
	border: 1px solid var(--text-color);
	text-decoration: none;
	font-size: 20px;
	text-transform: uppercase;
	letter-spacing: 1px;
	cursor: pointer;
	position: relative;
	overflow: hidden;
	user-select: none;
/*	transition: background 0.2s ease;*/
z-index: 2;
}

.btn:hover {
	color: var(--text-color);
/*	border: 1px solid var(--text-color);*/
/*	background: var(--text-color);*/
}

.btn:after {
	content: "";
	display: inline-block;
	width: 100%;
	height: 100%;
	position: absolute;
	left: 0;
	top: 0;
	color: var(--bg-color);
	border: 1px solid var(--text-color);
	background: var(--text-color);
	/*	opacity: 0;*/
	transition: transform 0.3s ease;
	transform: scaleY(1);
	z-index: -1;
}

.btn:hover:after {
	/*opacity: 1;*/
	transform: scaleY(0);
}

.intro-section {
	padding: 140px 40px 100px;
/*	background: var(--bg-pattern);*/
	background: linear-gradient(120deg, #fdf2d9, #ffde94);
	background: linear-gradient(120deg, #fdf2d9, #ffefcb);
	background: var(--bg-color);
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	justify-content: space-evenly;
	gap: 50px;
	min-height: 100vh;
	box-sizing: border-box;
}

.intro-section .text-content {
	max-width: 540px;
	text-align: left;
}

.intro-section .intro-img {
	max-width: 600px;
	max-width: 450px;
	max-height: 460px;
	text-align: right;
	/*mix-blend-mode: darken;*/
}

.section {
	padding: 50px 40px;
	text-align: center;
	justify-content: space-evenly;
	gap: 50px;
	flex-wrap: wrap;
	background: var(--bg-color);
}

.main-section {
	display: flex;
	align-items: center;
	padding: 80px 40px;
	min-height: 100vh;
	box-sizing: border-box;
}

.main-section h1 {
	text-align: left;
	font-size: 50px;
}

.section-wrapper {
	width: 100%;
	max-width: 540px;
	max-width: 1280px;
	text-align: left;
	justify-content: space-evenly;
	gap: 50px;
	align-self: center;
}

.main-section .section-wrapper {
	max-width: 540px;
}

.main-section img {
	max-width: 640px;
	text-align: left;
	/*	
	position: sticky;
	top: calc(50% - 250px);
	*/
	margin: 100px 0;
}

.services {
	display: flex;
	align-items: center;
	padding: 80px 40px;
	background: var(--bg-color);
	border-top: 1px solid var(--text-color);
	min-height: 100vh;
	box-sizing: border-box;
}

.services-wrapper {
	display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-evenly;
    margin-top: 40px;
    flex-wrap: wrap;
    gap: 0 40px;
}

.service {
	width: 100%;
	max-width: 400px;
	margin: 0;
	text-align: left;
	padding-top: 0px;
}

.service h2 {
	margin-top: 70px;
	text-align: left;
	font-family: Montserrat, sans-serif;
	font-size: 18px;
	cursor: pointer;
	padding-right: 30px;
	position: relative;
}

.service h2:hover:after {
	content: "\2039";
	content: "\01F517";
	font-size: 17px;
	width: 20px;
	height: 20px;
	line-height: 20px;
	display: inline-block;
	text-align: center;
	position: absolute;
	right: 0;
	top: 0;
	transition: transform 0.3s ease;
}

.service h2:before {
	display: none;
	text-transform: none !important;
	font-size: 12px;
	line-height: 1.2em;
	padding: 4px 10px;
	border-radius: 3px;
	background: #fff9ec;
	border: 1px solid #ddd;
	text-align: center;
	position: absolute;
	right: 0;
	top: -30px;
}

.service h2:hover:before {
	content: "Kliknij aby skopiować link do schowka";
	display: inline-block;
}

/*.service h2.link-copied:before,*/
.service h2.link-copied:hover:before {
	content: "Link skopiowany";
	display: inline-block;
	background: #d9ffd6;
}

.service-description {
	border-radius: 8px;
/*	transition: background 0.3s ease;*/
}

.service:target .service-description {
	background: transparent;
	animation: targetBg 1.5s;
}

@keyframes targetBg {
	0% { 
		background: transparent;
	}
	40% { 
		background: #ffc80047;
	}
	60% { 
		background: #ffc80047;
	}
	100% { 
		background: transparent;
	}
}

/*.service:not(.active) p,
.service:not(.active) ul,
.service:not(.active) span {
	display: none;
}*/

.pricing {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
}

.price {
	display: block;
	text-align: left;
	padding-bottom: 20px;
}

.price:before {
	content: "Cena: ";
	display: inline;
}

.contact {
	text-align: center;
}

.contact__info {
	margin: 20px 0;
}

.contact-details {
	text-align: left;
}

.contact-details td:first-child {
	padding-right: 20px;
}

#kontakt {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	justify-content: space-evenly;
	gap: 80px;
	background: #293648;
	color: white;
	padding: 50px 20px;
}

#kontakt a {
	color: var(--bg-color);
}

#kontakt a:hover {
	color: #ffd266;
}

#kontakt p {
	color: #ffa3a3;
	color: #fff;
	font-style: italic;
	font-size: 14px;
}

#kontakt h2 {
 	font-size: 28px;
	text-align: left;
	color: #ffffff;
	text-transform: uppercase;
}

#logoFooter {
/*	mix-blend-mode: exclusion;*/
	width: 300px;
	align-self: center;
	margin: 40px 0;
}

@media (min-width: 1221px) {
	#ortopodologia > img {
		order: 2;
	}
}

@media (max-width: 1320px) {
	.section img {
		width: 100%;
		max-width: 550px;
		position: relative;
		top: 0;
		margin: 0;
	}
}

@media (max-width: 960px) {
	h1,
	.main-section h1 {
		font-size: 28px;
	}

	h2 {
		text-align: center;
		font-size: 19px;
		text-transform: none;
		font-weight: bold;
	}

	img#topLogo {
		height: 40px !important;
	}

	.section img,
	.intro-section .intro-img {
		width: 100%;
		max-width: 270px;
		position: relative;
		top: 0;
		margin: 0;
	}

	.intro-section .intro-img {
		height: 250px;
	}

	.section {
		flex-direction: column;
		justify-content: center;
	}

	.section,
	.intro-section {
		gap: 30px;
	}

	.intro-section .intro-img {
		max-height: 250px;
	}

	.intro-section {
		padding: 100px 40px 100px;
		flex-direction: column;
	}

	.intro-section .text-content {
		order: 2;
	}

	#kontakt {
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 60px;
	}

	#kontakt h2 {
		text-align: center;
	}

	.contact-details {
		margin: 0 auto;
	}
}

#menuButton {
	display: none;
	width: 28px;
	height: 48px;
	position: absolute;
	top: 4px;
	right: 15px;
}

@media (max-width: 759px) {
	#header {
		justify-content: center;
	}

	#menuButton {
		display: inline-block;
		align-self: flex-end;
	}

	nav {
		display: none;
	}

	nav.active {
		display: flex;
		position: absolute;
		top: 60px;
		left: 0;
		width: 100%;
		flex-direction: column;
		background: var(--bg-color);
		padding: 20px 0;
		gap: 0;
		box-shadow: 0 8px 8px -4px rgba(0,0,0,0.3);
	}

	nav.active a {
		display: block;
		line-height: 48px;
	}
}
