:root {
	--primary: #bc2453;
	--secondary: #07ae9c;
	--tertiary: #7e6b9b;
	--quaternary: #ff7336;
	--quinary: #318936;
	--senary: #f9353e;
	--bg-dark: #092e49;
	--bg-beige: #f8dfa6;
	--bg-light: #f6efdd;
	--bg-white: #fff;
	--text-white: #ffffff;
	--text-black: #000000;
	--disabled: #9a9a9a;
	--line: #bc2453;

	--content-width: 340px;

	@media (min-width: 576px) and (max-width: 767px) {
		--content-width: 540px;
	}

	@media (min-width: 768px) and (max-width: 991px) {
		--content-width: 720px;
	}

	@media (min-width: 992px) and (max-width: 1199px) {
		--content-width: 940px;
	}

	@media (min-width: 1200px) {
		--content-width: 1140px;
	}
}

/* Header */

.header {
}

.header__upper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: white;
	max-width: var(--content-width);
	margin: 0 auto;
	padding-top: 24px;
	padding-bottom: 20px;

	@media only screen and (max-width: 1199px) {
		max-width: 100%;
		padding: 24px 20px 20px 20px;
	}
}

.header__main {
	display: flex;
	gap: 32px;
	align-items: center;

	@media only screen and (max-width: 450px) {
		gap: 20px;
	}
}

.header__logos {
	display: flex;
	gap: 64px;
	align-items: center;

	@media only screen and (max-width: 450px) {
		gap: 20px;
	}

	.herb img {
		@media only screen and (max-width: 450px) {
			width: 40px;
			height: auto;
		}
	}

	.logo-rpd svg {
		width: 200px;
		height: auto;

		@media only screen and (max-width: 450px) {
			width: 140px;
		}
	}
}

.menu__btn {
	background: none;
	border: none;
	font-size: 1.5rem;
	cursor: pointer;
	line-height: 0;
}

.header__extras {
	display: flex;
	gap: 32px;
	align-items: center;

	@media only screen and (max-width: 48em) {
		display: none;
	}

	a {
		line-height: 0;
	}
}

.header__bottom {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	text-align: center;

	@media only screen and (max-width: 1000px) {
		grid-template-columns: 1fr;
	}

	a {
		display: flex;
		position: relative;
		align-items: center;
		justify-content: center;
		margin: 0;
		padding: 24px;
		color: var(--text-black);
		font-size: 1.5rem;
		font-weight: bold;
		text-decoration: none;

		span {
			max-width: 14ch;

			@media only screen and (max-width: 1000px) {
				max-width: 100%;
			}
		}
	}

	a:nth-of-type(1) {
		background-color: var(--secondary);
	}
	a:nth-of-type(2) {
		background-color: var(--primary);
	}
	a:nth-of-type(3) {
		background-color: var(--quaternary);
	}
	a:nth-of-type(4) {
		background-color: var(--quinary);
	}
	a:nth-of-type(5) {
		background-color: var(--senary);
	}

	a:hover,
	a:focus {
		background-color: var(--bg-beige);
		color: var(--text-black);

		span {
			text-decoration: underline;
			text-decoration-thickness: 3px;
			text-underline-offset: 3px;
			text-decoration-color: var(--primary);
		}
	}
}

.search__btn {
	width: 32px;
	height: 32px;
	background-color: var(--primary);
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;

	svg {
		width: 20px;
		height: 20px;
	}
}

/* Rozwijane menu */

.menu-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 999;
}

.menu-overlay.active {
	opacity: 1;
}

.menu-panel {
	position: fixed;
	top: 0;
	left: 0;
	height: 100%;
	width: 80%;
	max-width: 460px;
	background: var(--bg-beige);
	transform: translateX(-100%);
	transition: transform 0.3s ease;
	z-index: 2147483645;
	overflow-y: auto;
}

.menu-panel.active {
	transform: translateX(0);
}

.menu-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: none;
	border: none;
	font-size: 3rem;
	cursor: pointer;
	line-height: 1;
}

.menu__primary {
	list-style: none;
	margin: 0;
	padding: 4rem 64px 24px 24px;
}

.menu__primary > li > a {
	display: block;
	padding: 0.5rem 0;
	margin: 0;
	text-decoration: none;
	color: var(--text-black);
	font-weight: 700;
	font-size: 1rem;
	margin: 0;
}

.menu__primary > li > a > span {
	position: relative;
}

.menu__primary .menu-item-has-children > a > span::after {
	content: "";
	position: absolute;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 185.343 185.343' xml:space='preserve'%3E%3Cpath style='fill:%23bc2453' d='M51.707 185.343a10.692 10.692 0 0 1-7.593-3.149 10.724 10.724 0 0 1 0-15.175l74.352-74.347L44.114 18.32c-4.194-4.194-4.194-10.987 0-15.175 4.194-4.194 10.987-4.194 15.18 0l81.934 81.934c4.194 4.194 4.194 10.987 0 15.175l-81.934 81.939a10.678 10.678 0 0 1-7.587 3.15z'/%3E%3C/svg%3E");
	width: 16px;
	height: 16px;
	background-repeat: no-repeat;
	background-size: cover;
	top: 0;
	left: calc(100% + 12px);
	transition: transform 0.2s ease;
}

.menu__primary ul {
	list-style: none;
	margin: 0.5rem 0 0 1rem;
	padding: 0;
	display: none;
}

.menu__primary .submenu-open > a > span::after {
	transform: rotate(90deg);
}
.menu__primary .submenu-open > ul {
	display: block;
}

.menu__primary ul li a {
	display: block;
	padding: 0.5rem 0;
	margin: 0;
	font-size: 1rem;
	color: var(--text-black);
}

.menu__extras {
	display: none;

	@media only screen and (max-width: 48em) {
		display: flex;
		flex-direction: row;
		gap: 20px;
		padding-left: 24px;
		align-items: center;
	}

	@media only screen and (max-width: 28em) {
		flex-direction: column;
		gap: 0;
		padding-left: 0;
	}
}

/* Footer */

.footer {
	background-color: var(--secondary);
	padding: 64px 24px 32px 24px;
	color: var(--text-black);

	a {
		color: var(--text-black);
		text-decoration: underline;
		text-decoration-thickness: 2px;
		text-underline-offset: 2px;
		text-decoration-color: var(--primary);
		font-weight: 700;

		&:hover {
			color: var(--text-black);
			text-decoration-color: var(--bg-beige);
		}
	}
}

.footer__container {
	max-width: var(--content-width);
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	column-gap: 64px;
	row-gap: 24px;
	color: var(--text-black);

	@media only screen and (max-width: 48em) {
		grid-template-columns: 1fr;
	}
}

.footer__title {
	grid-column: 1 / 4;
	font-weight: bold !important;
	margin: 0;

	@media only screen and (max-width: 48em) {
		grid-column: auto;
	}
}

.footer__menu {
	ul {
		list-style-type: none;
		padding: 0;
		margin: 0;

		li {
			margin-bottom: 0.5em;
		}
	}
}

.footer__social {
	grid-column: 3 / 4;

	@media only screen and (max-width: 48em) {
		grid-column: auto;
	}
}

.social-icons {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	justify-content: flex-start;
	gap: 2rem;
}

.social-icons a {
	display: inline-block;
	color: var(--text-black);
	text-decoration: none;
	transition: color 0.3s ease;
}

.social-icons a:hover,
.social-icons a:focus {
	color: var(--bg-beige);
}

.icon {
	width: 42px;
	height: 42px;
	display: block;
}

/* Strona główna klasy wspomagające */

.items__list .elementor-row {
	gap: 20px;
}

.btn__secondary .elementor-button,
.btn__primary .elementor-button {
	font-weight: 700;

	font-size: 1.5rem;
	text-decoration: none;
	background: none;
	padding: 0;

	span {
		text-decoration: underline;
		text-decoration-thickness: 3px;
		text-underline-offset: 3px;
	}
}

.btn__primary .elementor-button {
	color: var(--text-black);

	span {
		text-decoration-color: var(--primary);
	}

	&:hover {
		span {
			text-decoration-color: var(--secondary);
		}
	}
}

.btn__secondary .elementor-button {
	color: var(--text-white);
	span {
		text-decoration-color: var(--bg-beige);
	}

	&:hover {
		span {
			text-decoration-color: var(--secondary);
		}
	}
}

#hero-new > .elementor-container {
	min-height: calc(100vh - 276px);

	@media only screen and (max-width: 1000px) {
		.elementor-row {
			flex-direction: column;
		}

		.elementor-column.elementor-col-50 {
			width: 100%;
		}

		.hero__image {
			width: 100%;
			aspect-ratio: 16 / 9;
		}
	}
}

#hero-new h1 {
	@media only screen and (max-width: 1199px) {
		font-size: 3rem;
		line-height: 130%;
	}
}

.page__title {
	color: var(--primary);
	font-weight: 700;
	font-size: 3.815rem;
	line-height: 130%;

	@media only screen and (max-width: 1199px) {
		font-size: 3rem;
	}
}

.eael-meta-posted-on {
	color: var(--text-black) !important;
}

.info__grid {
	width: 100%;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;

	@media only screen and (max-width: 48em) {
		grid-template-columns: 1fr;
	}
}

.info__card {
	margin: 0;
	text-decoration: none;
	display: flex;
	flex-direction: column;
	background-color: var(--bg-white);

	figure {
		width: 100%;
		aspect-ratio: 4 / 3;
		line-height: 0;
		background-color: var(--primary);

		img {
			width: 100%;
			height: 100%;
			object-fit: cover;
			transition: opacity 0.35s cubic-bezier(0.075, 0.82, 0.165, 1);
		}
	}

	div.info__card--text {
		padding: 16px;

		h3 {
			margin: 0;
			color: var(--primary);
			font-weight: 700;
			font-size: 1.6rem;
			line-height: 2rem;
			font-family: var(--e-global-typography-primary-font-family), Sans-serif;
		}
	}
}

.info__card:hover,
.info__card:focus {
	text-decoration: none;

	img {
		opacity: 0.8;
	}

	h3 {
		color: var(--text-black) !important;
		text-decoration: underline;
		text-decoration-thickness: 3px;
		text-underline-offset: 3px;
		text-decoration-color: var(--primary);
	}
}

.eael-grid-post-link:hover,
.eael-grid-post-link:focus {
	color: var(--text-black) !important;
	text-decoration: underline;
	text-decoration-thickness: 3px;
	text-underline-offset: 3px;
	text-decoration-color: var(--primary);
}

/* Screen-reader only */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
.flickity-button:focus {
	outline: 2px var(--quaternary) solid;
	outline-offset: 0;
	box-shadow: 0 0 0 4px var(--bg-dark);
}

body:not(.user-is-tabbing) a:focus,
body:not(.user-is-tabbing) button:focus,
body:not(.user-is-tabbing) input:focus,
body:not(.user-is-tabbing) select:focus,
body:not(.user-is-tabbing) textarea:focus {
	outline: none;
	box-shadow: none;
}
a.btn-new-2owls {
	color: var(--bg-dark);
	font-weight: 800;
	text-decoration-line: underline;
	text-decoration-color: var(--primary);
	text-decoration-thickness: 2px;
	margin: 20px;
}
a.btn-new-2owls:hover {
	color: var(--bg-dark);
	font-weight: 800;
	text-decoration-line: underline;
	text-decoration-color: var(--secondary);
	text-decoration-thickness: 2px;
}

blockquote {
    border-color: var(--primary) !important;
}

.new-color {
	color: var(--primary) !important;
}