/**
 * Layout fixes — image containment and overflow.
 */

body.site {
	overflow-x: hidden !important;
	overflow-y: auto !important;
	background-color: #ffffff !important;
}

.body,
#main_content_block,
#third_block,
#first_block,
#second_block {
	background-color: #ffffff !important;
}

#first_block {
	background-image: none !important;
}

header.header {
	background-color: #ffffff !important;
}

div.header-cont {
	background-color: #ffffff !important;
}

#bannerbottom_block {
	background-color: #ffffff !important;
}

/* Hero banner with photo background */
div#banner_block {
	background-image: url('../images/hero-banner.png') !important;
	background-position: center center !important;
	background-size: cover !important;
	background-repeat: no-repeat !important;
	padding: 50px 20px 60px !important;
	position: relative;
}

div#banner_block::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.42);
	z-index: 0;
}

div#banner_block .banner,
div#banner_block .moduletable_cont,
div#banner_block .module_content {
	position: relative;
	z-index: 1;
}

div#banner_block .moduletable_cont {
	max-width: 450px;
	margin: 0 auto;
	padding: 30px 0 40px !important;
	background: transparent !important;
}

div#banner_block .wg-hero-form.convertforms {
	background: transparent !important;
	max-width: 450px;
	margin: 0 auto;
}

div#banner_block .wg-hero-form .cf-content-wrap,
div#banner_block .wg-hero-form .cf-form-wrap {
	padding-left: 0;
	padding-right: 0;
}

div#banner_block .wg-hero-form .banner-logo {
	margin: 0 auto 12px;
	padding: 0;
	background: transparent !important;
	line-height: 0;
}

div#banner_block .wg-hero-form .banner-logo img {
	max-width: 130px;
	width: 100%;
	height: auto;
	margin: 0 auto;
	display: block;
	background: transparent;
}

div#banner_block .moduletable_cont h4,
div#banner_block .wg-hero-form h4 {
	color: #4cb911 !important;
	font-size: 24px;
	line-height: 1.25;
	text-transform: uppercase;
	margin: 0 auto 8px;
}

div#banner_block .wg-hero-form h5 {
	color: #ffffff !important;
	font-size: 17px;
	line-height: 1.3;
	padding: 0 0 16px !important;
	margin: 0 auto;
}

div#banner_block .wg-hero-form .cf-content-text p {
	color: #ffffff !important;
	font-size: 14px;
	line-height: 1.45;
	margin: 0 auto 8px;
}

div#banner_block .wg-hero-form .cf-success-msg {
	color: #d5fe7a !important;
}

.brand img {
	max-width: 110px;
	max-height: 110px;
	width: auto;
	height: auto;
	object-fit: contain;
	box-shadow: none !important;
}

div.header-logo {
	padding: 0 !important;
	background: transparent !important;
	display: block !important;
}

@media (max-width: 980px) {
	div.header-logo {
		display: none !important;
	}

	div.header-cont {
		background-color: #ffffff !important;
		padding-bottom: 10px;
		border-bottom: 1px solid #eeeeee;
	}

	.header-cont a,
	.header-cont strong {
		color: #717c7b !important;
	}

	div.moduletable_phone p,
	div.moduletable_grafik p {
		color: #555555 !important;
	}
}

@media (max-width: 640px) {
	div#banner_block {
		padding: 30px 0 0 !important;
		background-position: center center !important;
	}

	div#banner_block .moduletable_cont {
		max-width: 100% !important;
		margin: 0 !important;
		padding: 24px 16px 36px !important;
		background: rgba(0, 0, 0, 0.68) !important;
	}

	div#banner_block .wg-hero-form.convertforms {
		max-width: 320px !important;
		margin: 0 auto !important;
	}

	div#banner_block .moduletable_cont h4,
	div#banner_block .wg-hero-form h4 {
		font-size: 20px;
	}
}

.body,
#main_content_block,
.container,
.mod_articleslist_item,
.mod_articleslist_item_in,
.mod_articleslist_item_content {
	max-width: 100%;
	box-sizing: border-box;
}

#main_content_block img {
	max-width: 100%;
	height: auto;
}

/* Service cards */
.moduletable_services .newsflash-image {
	height: 220px;
	overflow: hidden;
	line-height: 0;
	background: #f5f5f5;
}

.moduletable_services .newsflash-image img {
	width: 100%;
	height: 100%;
	max-width: 100%;
	object-fit: cover;
	display: block;
}

.moduletable_services .mod_articleslist_item_content {
	min-height: 0 !important;
	padding-bottom: 15px !important;
	overflow: hidden;
}

.moduletable_services .mod_articleslist_item_content a.btn {
	position: relative !important;
	bottom: auto !important;
	right: auto !important;
	float: right;
	margin: 12px 10px 8px 0 !important;
	z-index: 1;
}

.moduletable_services .artlist_icon {
	z-index: 2;
}

/* Before/after slider — uniform height */
.beforeafter_list {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
}

.beforeafter_list_item {
	display: flex;
}

.beforeafter_list_item_in {
	width: 100%;
	padding-bottom: 20px !important;
}

.beforeafter_112,
.twentytwenty-wrapper,
.beforeafter_112.twentytwenty-container {
	width: 100% !important;
	max-width: 100% !important;
	overflow: hidden !important;
}

.beforeafter_112,
.beforeafter_112.twentytwenty-container {
	position: relative !important;
}

.beforeafter_112:not(.twentytwenty-container) {
	line-height: 0;
	height: 320px;
	overflow: hidden;
}

.beforeafter_112:not(.twentytwenty-container) img {
	position: static !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	object-position: center;
	display: block;
}

.beforeafter_112:not(.twentytwenty-container) img + img {
	display: none;
}

.twentytwenty-container img.twentytwenty-before,
.twentytwenty-container img.twentytwenty-after {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover !important;
	object-position: center center !important;
}

/* About block */
.moduletable_about .custom_aftercodeblock,
.moduletable_about .custom_aftercodeblock_in,
.moduletable_about .custom_mainblock {
	max-width: 100%;
}

.moduletable_about .custom_aftercodeblock_in img {
	width: 100%;
	height: auto;
	display: block;
}

/* Instagram / estimate row */
.moduletable_priceforfoto div.module_content {
	flex-wrap: wrap;
	overflow: hidden;
}

.moduletable_priceforfoto div.custom_mainblock,
.moduletable_priceforfoto div.custom_aftercodeblock,
.moduletable_priceforfoto div.custom_mainblock_in,
.moduletable_priceforfoto div.custom_aftercodeblock_in {
	max-width: 100%;
	box-sizing: border-box;
}

.moduletable_priceforfoto div.insta_cont {
	width: 100%;
	overflow: hidden;
}

.inst_qr_img {
	max-width: 100%;
	text-align: center;
}

.inst_qr_img img {
	max-width: 220px !important;
	width: 100% !important;
	height: auto !important;
	padding: 20px 0 0 !important;
	transform: none !important;
}

/* Banner form */
.convertforms,
.moduletable_cont {
	max-width: 100%;
	box-sizing: border-box;
}

.banner-logo {
	background: transparent !important;
	margin: 0;
	padding: 0;
}

.banner-logo img {
	max-width: 200px;
	width: 100%;
	height: auto;
	background: transparent;
}

.cf-service-label {
	text-align: center;
	color: #4cb911;
	font-weight: bold;
	margin: 0 0 10px;
	min-height: 0;
}

.cf-service-label:empty {
	display: none;
}

/* Quote modal */
body.wg-modal-open {
	overflow: hidden;
}

.wg-quote-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9999;
}

.wg-quote-modal.is-open {
	display: block;
}

.wg-quote-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.65);
}

.wg-quote-modal__dialog {
	position: relative;
	z-index: 1;
	width: calc(100% - 32px);
	max-width: 520px;
	margin: 40px auto;
	background: #fff;
	border-radius: 6px;
	padding: 24px 24px 10px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
	max-height: calc(100vh - 80px);
	overflow-y: auto;
}

.wg-quote-modal__title {
	margin: 0 0 16px;
	text-align: center;
	color: #373737;
	font-size: 24px;
}

.wg-quote-modal__close {
	position: absolute;
	top: 10px;
	right: 12px;
	border: 0;
	background: transparent;
	font-size: 32px;
	line-height: 1;
	color: #777;
	cursor: pointer;
}

.wg-quote-modal__form.convertforms {
	max-width: none;
	margin: 0;
}

.wg-quote-modal__form .cf-form-wrap {
	padding: 0;
}

/* About section spacing */
.moduletable_about {
	padding: 100px 0 50px !important;
}

.moduletable_about div.module_content {
	flex-wrap: wrap;
	gap: 40px;
	padding: 20px 15px 0;
	align-items: center;
}

.moduletable_about .custom_aftercodeblock_in {
	padding-right: 20px;
}

.moduletable_about .custom_mainblock_in {
	padding-left: 20px;
}

.moduletable_about .custom_mainblock_in p {
	margin: 0 0 18px;
}

@media (max-width: 900px) {
	.moduletable_about div.module_content {
		padding: 20px 20px 0;
	}

	.moduletable_about .custom_aftercodeblock_in,
	.moduletable_about .custom_mainblock_in {
		padding: 0;
		margin-bottom: 24px;
	}
}

/* Floating phone button */
.wg-floating-phone {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 9999;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: linear-gradient(135deg, #4cb911, #3a8f0d);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 20px rgba(76, 185, 17, 0.45);
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wg-floating-phone:hover,
.wg-floating-phone:focus {
	color: #ffffff;
	transform: scale(1.08);
	box-shadow: 0 6px 24px rgba(76, 185, 17, 0.55);
}

@media (max-width: 600px) {
	.wg-floating-phone {
		right: 16px;
		bottom: 16px;
		width: 54px;
		height: 54px;
	}
}
