.next-to-carousel-banners .banner-wrapper {
	padding-top: 10px;
}

@media(max-width: 767px){
	.in-index .row.banners-row:first-child {
	    padding-left: 10px !important;
	    padding-right: 10px !important;
	    padding-top: 10px;
	}
}

#carousel .carousel-control.right{
    right: 0px
}

#carousel .carousel-control.left{
    left: 0px
}

#carousel .carousel-control.right::before {
    content: "";
    background-image: url(/user/documents/pw/img/arrow_right.svg);
    background-size: contain;
    border-radius: 0px;
    border: unset;
}

#carousel .carousel-control.left::before {
    content: "";
    background-image: url(/user/documents/pw/img/arrow_left.svg);
    background-size: contain;
    border-radius: 0px;
    border: unset;
}

@media(max-width: 767px){
    #carousel{
        margin-bottom: 10px;
    }
}

@media(min-width: 768px) {
	.banners-row>div {
		width: 100%;
	}

	.next-to-carousel-banners .banner-wrapper {
		padding-top: 20px;
	}

	.next-to-carousel-banners {
		display: flex;
	}

	.next-to-carousel-banners .banner-wrapper:nth-of-type(odd) {
		padding-right: 10px !important;
	}

	.next-to-carousel-banners .banner-wrapper:nth-child(2) {
		padding-left: 10px !important;
	}

	.next-to-carousel-banners .banner-wrapper,
	.next-to-carousel-banners .banner-wrapper img {
		width: 100% !important;
	}
}

.in-index .container-narrow {
	width: 100%;
	display: inline-block;
}

.in-index .welcome-wrapper {
	position: relative;
	margin-top: 120px;
	padding-top: 120px;
	padding-bottom: 90px;
}

.in-index .welcome-wrapper * {
	position: relative;
	z-index: 1;
}

.in-index .welcome-wrapper:before {
	content: "";
	position: absolute !important;
	top: -1px !important;
	width: 100vw !important;
	height: 100% !important;
	left: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	right: 50%;
	background: linear-gradient(135deg, rgba(214, 32, 38, 0.95) 0%, rgba(176, 18, 22, 0.95) 60%, rgba(128, 8, 12, 0.95) 100%) !important;
	border-top: 1px solid #efeded;
	z-index: 0 !important;
}

.in-index .welcome {
	margin-left: 50%;
	max-width: 500px;
	color: #fff;
	font-weight: 200;
}

.in-index .welcome::before {
	content: "";
	background: url("/user/documents/pw/img/welcome-cert.png");
	background-size: contain;
	background-repeat: no-repeat;
	height: calc(100% + 300px);
	width: 500px;
	position: absolute;
	top: -210px;
	left: -400px;
	z-index: 1;
	display: inline-block;
}

.in-index .welcome::after {
	content: "";
	background: url("/user/documents/pw/img/welcome-podpis.png");
	background-size: contain;
	background-repeat: no-repeat;
	height: 100px;
	width: 342px;
	position: absolute;
	top: -15px;
	left: -590px;
	z-index: 1;
	display: inline-block;
}

.in-index .welcome h1 {
	font-weight: 300;
	color: #fff;
}

.in-index .welcome a {
	color: #fff;
	text-decoration: underline;
}

@media (min-width: 768px) {
	.homepage-blog-wrapper {
		margin-left: -10px;
		margin-right: -10px;
	}

	.homepage-blog-wrapper .news-item {
		padding: 10px;
	}
}

@media (min-width: 1200px) {
	.homepage-blog-wrapper .news-item {
		flex-basis: 25%;
		width: 25%;
	}
}

.homepage-blog-wrapper .news-item .image img {
	height: 200px;
	object-fit: cover;
}

.homepage-blog-wrapper .news-item a {
	background: #000;
	display: inline-block;
}

.homepage-blog-wrapper .news-item .text {
	padding-left: 25px;
	padding-right: 25px;
	padding-bottom: 20px;
}

.homepage-blog-wrapper .news-item .title {
	font-size: 18px;
	line-height: 22px;
	font-weight: 400;
	color: #fff;
	display: -webkit-box;
	height: 44px;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.homepage-blog-wrapper .news-item .description {
	font-size: 14px;
	line-height: 16px;
	color: #B5B5B5;
	margin-bottom: 10px;
	display: -webkit-box;
	height: 64px;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.homepage-blog-wrapper .news-item .read-article {
	display: inline-block;
	color: #fff;
	font-size: 14px;
}

.pw-kategorie {
	padding-top: 40px;
}

.pw-kategorie-box {
	position: relative;
	display: block;
	overflow: hidden;
	text-decoration: none;
	width: 100%;
}

.pw-kategorie-img img {
	width: 100%;
	display: block;
	transition: transform 0.4s ease;
}

@media(max-width: 767px) {
	.pw-kategorie-img img {
		height: 200px;
		object-position: inherit;
		object-fit: cover;
		display: block;
		transition: transform 0.4s ease;
	}
}

.pw-kategorie-text {
	position: absolute;
	inset: 0;
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	padding: 12% 9%;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0));
}

.pw-kategorie-title {
	color: #fff;
	font-size: 24px;
	line-height: 28px;
	font-weight: 400;
	padding-bottom: 7px;
}


.pw-kategorie-arrow {
	width: 40px;
	height: 42px;
	background: #e53935;
	position: relative;
	flex-shrink: 0;
}

.pw-kategorie-arrow::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 42%;
	width: 10px;
	height: 10px;
	border-top: 2px solid #fff;
	border-right: 2px solid #fff;
	transform: translate(-50%, -50%) rotate(45deg);
}

.pw-kategorie-box:hover .pw-kategorie-img img {
	transform: scale(1.06);
}

.pw-kategorie-box:hover .pw-kategorie-arrow {
	background: #c62828;
}

.banners-row [class*=col-] {
	padding-left: 10px;
	padding-right: 10px;
}

.footer-banners {
	margin: 0px !important;
	padding: 0px !important;
}


a.homepage-products-heading-link {
	color: black;
	border: 1px solid #B5B5B5;
	padding: 10px 15px;
	font-size: 16Px;
	font-weight: 500;
	text-decoration: unset;
}

.pw-spoluprace {
	display: flex;
	flex-wrap: wrap;
	padding-top: 0 !important;
}


.pw-spoluprace>div {
	padding-bottom: 10px;
}


span#elektromontaz {
	content: url("/user/documents/pw/img/spoluprace/icons/elektromontazni.svg");
	background: var(--color-primary);
}

span#developeri {
	content: url("/user/documents/pw/img/spoluprace/icons/developeri.svg");
	background: var(--color-primary);
}


span#stavebni {
	content: url("/user/documents/pw/img/spoluprace/icons/stavebni.svg");
	background: var(--color-primary);
}

span#projektanti {
	content: url("/user/documents/pw/img/spoluprace/icons/projektanti.svg");
	background: var(--color-primary);
}


span.pw-kategorie-icon {
	width: 80px;
	height: 80px;
	padding: 8px;
}


.stats-section {
	background-color: #D9242D;
	padding: 60px 0px;
	margin-top: 90px;
	z-index: 1;
	position: relative;
}

@media (max-width: 991px) {
	.stats-section {
		margin-top: 50px !important;
		padding: 40px 0px;
	}
}

@media (max-width: 767px) {
	.stats-section {
		padding-bottom: 10px;
		margin-top: 5px !important;
	}
}

.stats-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	position: relative;
	z-index: 2;
}

.stat-item {
	flex: 1;
	text-align: center;
	padding: 0px 10px;
	position: relative;
	color: white;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.stat-item:not(:last-child)::after {
	content: '';
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 1px;
	height: calc(100% + 50px);
	background-color: black;
}

@media (max-width: 991px) {
	.stat-item:not(:last-child)::after {
		height: calc(100% + 20px);
	}
}

.stat-number {
	font-size: 28px;
	font-weight: 500;
	white-space: nowrap;
	line-height: 1;
	padding-bottom: 10px;
}

.stat-label {
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 1px;
	text-transform: uppercase;
}

@media(min-width: 768px) and (max-width: 1439px){
	.stat-label{
		max-width: 135px;
	}
}

@media (max-width: 767px) {
	.stat-item {
		flex-basis: 33.33%;
		padding-bottom: 30px
	}

	.stat-item::after {
		display: none !important;
	}
}
@media (max-width: 650px) {	
	.stat-item {
		flex-basis: 50%;
	}
}

@media (max-width: 450px) {	
	.stat-label {
		width: 135px;
	}
}

.stats-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 100vw;
	height: 100%;
	background-color: #D9242D;
	z-index: -1;
}

@media(min-width: 1440px) {
	.stat-number {
		font-size: 40px;
		font-weight: 500;
	}

	.stat-label {
		font-size: 13px;
		font-weight: 500;
		letter-spacing: 1px;
		text-transform: uppercase;
	}
}


.footer-banner .homepage-products-heading-1 {
	margin-top: 30px !important;
}

main#content div.row.banners-row:first-child {
	margin-inline: -10px !important;
}

.homepage-group-title.h4 {
	text-align: left;
	font-size: 32px;
	font-weight: 300;
	padding-left: 0 !important;
}

.homepage-blog-wrapper .news-item {
	padding: 10px;
	padding-top: 0;
}

.spoluprace-h {
	margin-left: -10px;
}


div.blog-wrapper .homepage-group-title.h4 {
	padding-left: 10px !important;
}


body.in-index {
	overflow-x: hidden;
}

@media(max-width: 479px) {
	.homepage-group-title.h4 {
		text-align: left;
		font-size: 28px !important;
		font-weight: 300;
		padding-left: 0 !important;
		margin-bottom: 30px;
	}

	a.homepage-products-heading-link {
		color: black;
		border: 1px solid #B5B5B5;
		padding: 8px 10px !important;
		font-size: 16Px;
		font-weight: 500;
	}
}


@media (max-width: 767px) {
	.homepage-products-heading-wrapper {
		display: flex;
		align-items: center !important;
		flex-direction: row;
		gap: 15Px !important;
		padding-top: 30px !important;
		padding-left: 10px;
		justify-content: flex-start;
		margin-bottom: 30px;
	}

	.homepage-group-title.h4 {
		text-align: left;
		font-size: 32px;
		font-weight: 300;
		padding-left: 0 !important;
		margin-bottom: 30px;
	}


	.in-index .welcome {
		margin-left: 0;
		max-width: 500px;
		color: #fff;
		font-weight: 200;
		padding-left: 30px;
		padding-right: 30px;
	}

	.homepage-group-title:first-child {
		margin-top: 0;
		margin-bottom: 0;
		padding-top: 0 !important;
	}

	div.blog-wrapper .homepage-group-title.h4 {
		padding-left: 10px !important;
		margin-bottom: 30px !important;
	}

	.in-index .welcome::before {
		content: "";
		background: url(/user/documents/pw/img/welcome-cert.png);
		background-size: contain;
		background-repeat: no-repeat;
		height: calc(100%);
		width: 200px;
		position: absolute;
		top: 300Px !important;
		right: 0 !important;
		left: unset !important;
		z-index: 1;
		display: inline-block;
	}

	.overall-wrapper {
		overflow-x: hidden !important;
	}

	.in-index .welcome-wrapper {
		padding-top: 30px !important;
	}

	span.pw-kategorie-icon {
		width: 65px;
		height: 65px;
		padding: 8px;
	}

	.row.pw-kategorie>div {
		padding: 0 !important;
	}

	body.type-index .content-wrapper.container {
		padding-left: 0;
		padding-right: 0;
		padding-top: 0;
	}

	.next-to-carousel-banners .banner-wrapper {
		padding-top: 0;
	}

	.next-to-carousel-banners .banner-wrapper:nth-child(n+2) {
		padding-top: 10px;
	}

	body.type-index .benefitBanner.position--benefitHomepage {
		padding-inline: 10px;
	}

	body.type-index .footer-banners.row.banner-wrapper.banners-row {
		padding-inline: 10px !important;
	}

	body.type-index .welcome-wrapper.container-narrow {
		padding-inline: 10px;
	}

	body.type-index .banner-rating.row.container-narrow {
		padding-inline: 10px;
		padding-right: 0;
	}

	body.type-index .container-narrow {
		padding-inline: 10px;
	}

	body.type-index .owl-stage-outer {
		padding-left: 10px;
	}

	.pw-kategorie {
		padding-top: 0;
	}

	.row.pw-kategorie>div:first-child {
		margin-top: 0 !important;
	}


	.footer-banner .homepage-products-heading-1 {
		margin-top: 10px !important;
	}

	.in-index .welcome-wrapper {
		margin-top: 5px !important;
	}

	.banner-rating.row.container-narrow {
		margin-top: 90px !important;
	}

	.blog-wrapper .homepage-group-title {
		margin-top: 94px !important;
	}

	.ratings__content {
		padding-right: 0 !important;
	}
}

@media (min-width: 768px) and (max-width: 991px) {
	div.footer-banner div.pw-kategorie:not(.pw-spoluprace)>div {
		width: 50% !important;
	}

	div.footer-banner div.pw-kategorie:not(.pw-spoluprace)>div:last-child {
		width: 100% !important;
		margin-top: 10px !important;
	}

	div.footer-banner div.pw-kategorie:not(.pw-spoluprace)>div:last-child img {
		max-height: 293px;
		object-fit: cover;
	}

}