/* Global mobile / tablet adaptation — loads last */

html {
	overflow-x: hidden;
}

body {
	overflow-x: hidden;
	max-width: 100%;
}

img,
video,
iframe {
	max-width: 100%;
	height: auto;
}

/* Keep carousels from expanding the page */
.gsc_partners .main_clients .items,
.works_slider,
.catalog_listing_slider,
.related_products .catalog_listing {
	overflow: hidden;
	max-width: 100%;
}

/* ---------- Header ---------- */
@media screen and (max-width: 1000px) {
	.header .wr {
		height: auto;
		min-height: 64px;
		padding-top: 10px;
		padding-bottom: 10px;
		gap: 8px;
		align-items: center;
	}

	.header .logo_wr {
		width: auto;
		max-width: 150px;
		flex: 0 1 auto;
	}

	.header .logo_wr img {
		height: 34px;
		width: auto;
		max-width: 100%;
	}

	.header .right {
		display: none !important;
	}

	.header .header_call {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		margin-left: auto;
		margin-right: 4px;
		min-width: 44px;
		min-height: 44px;
		padding: 8px 10px;
		border-radius: 10px;
		background: rgba(49, 144, 48, 0.1);
		color: #319030;
		text-decoration: none;
		box-sizing: border-box;
	}

	.header .header_call svg {
		display: block;
		width: 20px;
		height: 20px;
	}

	#mmenu {
		display: block !important;
		position: relative;
		z-index: 220;
		flex: 0 0 auto;
		padding: 12px 8px;
		min-width: 44px;
		min-height: 44px;
		box-sizing: border-box;
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}
}

@media screen and (min-width: 1001px) {
	.header .header_call {
		display: none !important;
	}
}

/* Contacts inside open mobile menu */
.menu_header .mobile_menu_contacts {
	display: none;
}

.menu_header.open .mobile_menu_contacts {
	display: block;
	padding: 20px 30px 40px;
	border-top: 1px solid #e8e8e8;
	font-family: "Nunito", "ProximaNova", sans-serif;
}

.menu_header.open .mobile_menu_contacts .mmc_label {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #8a9286;
}

.menu_header.open .mobile_menu_contacts a {
	display: block;
	margin: 0 0 14px;
	font-size: 17px;
	font-weight: 800;
	color: #1f2a1c;
	text-decoration: none;
	line-height: 1.3;
}

.menu_header.open .mobile_menu_contacts a:hover {
	color: #319030;
}

.menu_header.open .mobile_menu_contacts .mmc_addr {
	margin: 4px 0 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.45;
	color: #5f6b5a;
}

.menu_header.open .mobile_menu_contacts .mmc_addr a {
	display: inline;
	margin: 0;
	font-size: inherit;
	font-weight: inherit;
	color: #319030;
}

/* ---------- Home video hero ---------- */
@media screen and (max-width: 720px) {
	.home_video_hero_inner {
		padding-left: 8px;
		padding-right: 8px;
	}

	.home_video_hero_brand {
		font-size: 13px;
	}

	.home_video_hero_title {
		font-size: 24px;
		line-height: 1.22;
	}

	.home_video_hero_usp {
		font-size: 15px;
		line-height: 1.55;
	}

	.home_video_hero_cta {
		padding-top: 24px;
	}

	.home_video_hero_cta .btn {
		display: inline-block;
		min-height: 48px;
		line-height: 48px;
		padding-left: 22px;
		padding-right: 22px;
		box-sizing: border-box;
	}
}

/* ---------- Features ---------- */
@media screen and (max-width: 720px) {
	.gsc_features {
		padding: 32px 0 12px;
	}

	.gsc_features_title {
		font-size: 22px;
		line-height: 1.28;
	}

	.gsc_features_lead {
		font-size: 15px;
	}
}

/* ---------- Partners / manufacturers ---------- */
@media screen and (max-width: 720px) {
	.gsc_partners .main_manufacturer .items.manufacturer_logos {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
		justify-content: stretch;
	}

	.gsc_partners .main_manufacturer .items.manufacturer_logos .item {
		width: auto;
		margin: 0;
	}

	.gsc_partners .main_manufacturer .items.manufacturer_logos .item .img_wr {
		width: 100%;
		min-height: 72px;
		justify-content: center;
	}

	.gsc_partners .main_clients .gsc_partners_lead {
		font-size: 16px;
		line-height: 1.5;
		color: #3d4a38;
	}
}

/* ---------- Catalog cards ---------- */
@media screen and (max-width: 520px) {
	.main_catalog .wr .title_wr,
	.page_catalog .wr .title_wr {
		font-size: 22px;
		line-height: 1.3;
		padding-left: 4px;
		padding-right: 4px;
	}

	.main_catalog .wr .catalog_items .item .img_wr,
	.page_catalog .wr .catalog_items .item .img_wr {
		width: 100px;
		min-width: 100px;
	}

	.main_catalog .wr .catalog_items .item .title,
	.page_catalog .wr .catalog_items .item .title {
		font-size: 14px;
	}

	.main_catalog .wr .catalog_items .item .blurb,
	.page_catalog .wr .catalog_items .item .blurb {
		font-size: 12px;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
}

/* ---------- Home services ---------- */
@media screen and (max-width: 560px) {
	.main_services.gsc_home_services {
		padding: 36px 0;
	}

	.main_services.gsc_home_services .items .item {
		height: 200px;
		border-radius: 14px;
	}

	.main_services.gsc_home_services .items .item .title {
		font-size: 20px;
	}

	.main_services.gsc_home_services .items .item .usp {
		font-size: 13px;
	}
}

/* ---------- About strip ---------- */
@media screen and (max-width: 1000px) {
	.main_about .df {
		display: block;
	}

	.main_about .df .left,
	.main_about .df .right {
		width: 100% !important;
		max-width: 100%;
	}

	.main_about .df .right {
		margin-top: 28px;
	}
}

@media screen and (max-width: 720px) {
	.main_about {
		padding: 36px 0 40px;
	}

	.main_about .title_wr {
		font-size: 22px !important;
		line-height: 1.3 !important;
	}

	.main_about .article {
		font-size: 15px;
		line-height: 1.6;
	}
}

/* ---------- Page hero ---------- */
@media screen and (max-width: 720px) {
	.page_hero {
		min-height: 260px;
	}

	.page_hero_inner {
		padding-top: 28px;
		padding-bottom: 28px;
	}

	.page_hero_crumbs.crumbs {
		padding-bottom: 12px;
		font-size: 12px;
		line-height: 1.4;
		word-break: break-word;
	}

	.page_hero_title {
		font-size: 24px;
		line-height: 1.25;
	}

	.page_hero_usp {
		font-size: 14px;
		line-height: 1.5;
	}

	.page_hero_cta {
		padding-top: 20px;
	}

	.page_wr.wr,
	.page_wr {
		padding-top: 24px;
	}

	.page_wr .article {
		font-size: 15px;
		line-height: 1.65;
		overflow-wrap: anywhere;
	}

	.page_wr .article img {
		height: auto !important;
	}
}

/* ---------- Catalog filter ---------- */
@media screen and (max-width: 720px) {
	.gsc_catalog_filter {
		padding: 16px;
		margin-bottom: 20px;
	}

	.gsc_cf_checks {
		max-height: 160px;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	.gsc_cf_submit,
	.gsc_cf_actions .btn {
		width: 100%;
		min-height: 48px;
	}

	.gsc_cf_search_wrap input[type="search"] {
		min-height: 48px;
		font-size: 16px !important;
	}
}

/* ---------- Works / related ---------- */
@media screen and (max-width: 720px) {
	.works_slider,
	.related_products {
		padding-left: 0;
		padding-right: 0;
	}

	.related_products .title_wr,
	.works .title_wr {
		font-size: 22px;
	}
}

/* ---------- Footer already OK; tighten a bit ---------- */
@media screen and (max-width: 720px) {
	.footer_phone a,
	.footer a[href^="tel:"] {
		font-size: 16px;
		line-height: 1.4;
	}
}

/* Tap targets for menu */
@media screen and (max-width: 1000px) {
	.menu_header.open > .wr > ul.menu > li > a {
		min-height: 48px;
		display: flex;
		align-items: center;
		justify-content: flex-start;
		text-align: left !important;
	}

	/* Keep burger above the open panel so menu can open/close */
	body.open .header {
		position: fixed !important;
		left: 0;
		top: 0;
		width: 100%;
		z-index: 200 !important;
		background: #fff;
		box-shadow: 0 2px 10px rgba(28, 36, 24, 0.08);
	}

	body.open .header #mmenu,
	body.open #mmenu {
		visibility: visible !important;
		pointer-events: auto !important;
		z-index: 220;
	}

	.menu_header.open {
		display: block !important;
		position: fixed !important;
		left: 0;
		top: 0;
		width: 100%;
		height: 100%;
		height: 100dvh;
		z-index: 180 !important;
		background: #fff;
		overflow: hidden;
	}

	.menu_header.open > .wr {
		padding: 0 !important;
		max-width: 100% !important;
		height: calc(100% - 64px);
		margin-top: 64px;
		overflow-x: hidden;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		box-sizing: border-box;
	}

	.menu_header.open > .wr > ul.menu {
		display: block !important;
		padding-top: 0 !important;
		padding-bottom: 40px;
		height: auto !important;
	}

	.menu_header.open > .wr > ul.menu > li > .sub-menu {
		display: none;
	}
}

/* Prevent body scroll when menu open */
body.open {
	overflow: hidden;
	position: fixed;
	width: 100%;
	left: 0;
	right: 0;
}

/* Cookie banner less huge on small screens (common plugin classes) */
@media screen and (max-width: 720px) {
	.cookie-notice,
	#cookie-notice,
	.cky-consent-container,
	.cookie_notice,
	div[class*="cookie"][class*="banner"],
	div[class*="cookie"][class*="consent"] {
		max-width: calc(100% - 24px) !important;
		left: 12px !important;
		right: 12px !important;
		bottom: 12px !important;
		box-sizing: border-box;
	}
}
