/*
Theme Name: Hq Pages Child
Theme URI: https://hq-web.net/themes/wordpress/hq-web
Text Domain: hq-pages
Author: hq-web
Author URI: https://hq-web.net
Template: hq-pages
Version: 2.0.0
*/

/* The parent theme forces a 320px document minimum. With classic desktop
 * scrollbars that creates an unnecessary horizontal scrollbar at a 320px
 * viewport; responsive components already support narrower content boxes. */
html {
	min-width: 0;
	overflow-x: hidden;
	overflow-x: clip;
}

/*
 * Energoskan Brand System 2.0
 * Light industrial premium: strict grid, clear hierarchy and restrained accents.
 */

:root {
	--energoskan-teal: #006e78;
	--energoskan-teal-dark: #004e57;
	--energoskan-teal-soft: #e8f3f4;
	--energoskan-orange: #f58220;
	--energoskan-orange-dark: #d96505;
	--energoskan-graphite: #1d252c;
	--energoskan-muted: #65717a;
	--energoskan-light: #f6f8fa;
	--energoskan-white: #ffffff;
	--energoskan-border: #dce4e8;
	--energoskan-shadow: 0 18px 48px rgba(29, 37, 44, 0.09);
	--energoskan-shadow-hover: 0 24px 60px rgba(0, 110, 120, 0.14);

	--font-family: "Montserrat", Arial, sans-serif;
	--font-size-big-super: clamp(2.25rem, 4.2vw, 4.5rem);
	--font-size-big-middle: clamp(2rem, 3vw, 3rem);
	--font-size-normal-super: clamp(1.35rem, 2vw, 2rem);
	--font-size-normal-pre-super: 1.125rem;
	--font-size-normal-middle: 1rem;
	--font-size-normal-small: 0.875rem;
	--font-size-normal-mini: 0.75rem;
	--line-height: 1.62;

	--color-text-primary: var(--energoskan-graphite);
	--color-text-secondary: var(--energoskan-muted);
	--color-text-hover: var(--energoskan-teal);
	--color-background-primary: var(--energoskan-light);
	--color-background-secondary: var(--energoskan-white);
	--color-background-block: var(--energoskan-white);
	--color-background-light-block: var(--energoskan-light);
	--color-accent-primary: var(--energoskan-graphite);
	--color-accent-secondary: var(--energoskan-teal);
	--color-accent-tertiary: var(--energoskan-orange);
	--color-accent-quaternary: var(--energoskan-teal);
	--color-main-bg: var(--energoskan-white);
	--color-header-bg: rgba(255, 255, 255, 0.96);
	--color-footer-bg: var(--energoskan-graphite);

	--border-radius-block: 16px;
	--border-radius-image: 12px;
	--border-radius-badge: 6px;
	--border-radius-btn: 8px;
	--padding-block: clamp(22px, 3vw, 38px);
	--margin-bottom-section-desktop: 96px;
	--margin-bottom-section-mobile: 56px;
	--distance1: 56px;
	--distance2: 32px;
	--distance3: 20px;
	--distance4: 10px;
}

html {
	scroll-behavior: smooth;
}

body {
	background: var(--energoskan-white);
	color: var(--energoskan-graphite);
	font-family: var(--font-family);
	font-size: 16px;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body::before {
	background-image:
		linear-gradient(135deg, transparent 0 48%, rgba(0, 110, 120, 0.025) 48% 49%, transparent 49%),
		linear-gradient(45deg, transparent 0 48%, rgba(29, 37, 44, 0.018) 48% 49%, transparent 49%);
	background-size: 80px 80px;
	content: "";
	inset: 0;
	pointer-events: none;
	position: fixed;
	z-index: -1;
}

::selection {
	background: var(--energoskan-teal);
	color: var(--energoskan-white);
}

a {
	text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 3px solid rgba(245, 130, 32, 0.55);
	outline-offset: 3px;
}

/* Shared accessible states for all Contact Form 7 forms. Page-specific
 * palettes may override the ring color, but the state must stay visible. */
.wpcf7 form :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]), select, textarea):focus-visible {
	outline: 3px solid rgba(245, 130, 32, 0.72) !important;
	outline-offset: 2px;
}

.wpcf7 form :is(input[type="submit"], button[type="submit"]):disabled {
	box-shadow: none !important;
	cursor: not-allowed !important;
	filter: saturate(0.55);
	opacity: 0.48 !important;
	transform: none !important;
}

.container {
	width: min(100% - 40px, 1440px);
}

.title-h1,
.title-h2,
.title-h3,
h1,
h2,
h3 {
	color: var(--energoskan-graphite);
	font-family: var(--font-family);
	font-weight: 700;
	letter-spacing: -0.035em;
	line-height: 1.12;
}

.title-h2,
h2.wp-block-heading {
	font-size: clamp(2rem, 3.2vw, 3rem);
}

.title-h2::after,
.block-hq-gallery-2__title::after,
.block-hq-latest-post-1__title::after,
.block-hq-partners-2__title::after {
	background: var(--energoskan-orange);
	content: "";
	display: block;
	height: 3px;
	margin-top: 18px;
	width: 64px;
}

/* Baseline styling for homepage widget sections built from plain core
   blocks (heading + paragraph/list, no dedicated .block-hq-* component of
   their own): vertical rhythm to match the theme's own sections, and the
   same orange accent-bar treatment used on .title-h2 headings elsewhere. */
.hq-widget-3,
.hq-widget-8,
.hq-widget-9,
.hq-widget-10,
.hq-widget-11,
.hq-widget-14 {
	padding-block: var(--margin-bottom-section-desktop);
}

.hq-widget-3 h2.wp-block-heading::after,
.hq-widget-8 h2.wp-block-heading::after,
.hq-widget-9 h2.wp-block-heading::after,
.hq-widget-10 h2.wp-block-heading::after,
.hq-widget-11 h2.wp-block-heading::after,
.hq-widget-14 h2.wp-block-heading::after {
	background: var(--energoskan-orange);
	content: "";
	display: block;
	height: 3px;
	margin-top: 18px;
	width: 64px;
}

/* Header */
body:not(.home) .header,
body:not(.home) .header.header-templates-v3,
body.home.is-header-scrolled .header,
body.home.is-header-scrolled .header.header-templates-v3 {
	background: rgba(255, 255, 255, 0.97) !important;
	border-bottom: 1px solid rgba(0, 110, 120, 0.13);
	box-shadow: 0 8px 30px rgba(29, 37, 44, 0.05);
	color: var(--energoskan-graphite);
}

/* Transparent header over the homepage hero (desktop), turning solid on scroll */
@media (min-width: 993px) {
	body.home .header {
		transition: background 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
		width: 100%;
		z-index: 110;
	}

	body.home:not(.is-header-scrolled) .header {
		background: transparent;
		border-bottom-color: transparent;
		box-shadow: none;
		position: absolute;
		top: 0;
	}

	/* Once scrolled, the header must behave like on every other page: stick
	   to the viewport instead of scrolling away with the rest of the hero. */
	body.home.is-header-scrolled .header {
		position: fixed;
		top: 0;
	}

	body.home:not(.is-header-scrolled) .header-templates-v3__row-middle,
	body.home:not(.is-header-scrolled) .header-templates-v3__row-bottom {
		border-color: rgba(255, 255, 255, 0.22) !important;
	}

	body.home:not(.is-header-scrolled) .header__logo-text > div::before,
	body.home:not(.is-header-scrolled) .header__logo-text > a::before {
		color: var(--energoskan-white);
	}

	body.home:not(.is-header-scrolled) .header__logo-text > div::after,
	body.home:not(.is-header-scrolled) .header__logo-text > a::after {
		color: rgba(255, 255, 255, 0.72);
	}

	body.home:not(.is-header-scrolled) .header .logo-custom,
	body.home:not(.is-header-scrolled) .header__logo img {
		filter: brightness(0) invert(1);
	}

	body.home:not(.is-header-scrolled) .header__menu a,
	body.home:not(.is-header-scrolled) .header-templates-v3__email a,
	body.home:not(.is-header-scrolled) .header-templates-v3__phone a,
	body.home:not(.is-header-scrolled) .header-templates-v3__open-mode,
	body.home:not(.is-header-scrolled) .header-templates-v3__address-title,
	body.home:not(.is-header-scrolled) .header-templates-v3__address-text,
	body.home:not(.is-header-scrolled) .header-templates-v3__socials-description {
		color: var(--energoskan-white) !important;
	}

	body.home:not(.is-header-scrolled) .header-templates-v3__icon svg path {
		fill: var(--energoskan-white);
	}

	/* The dropdown submenu panel itself is always solid/light, even while the
	   header behind it is transparent — its links must stay dark, not white. */
	body.home:not(.is-header-scrolled) .header__menu .sub-menu a {
		color: var(--energoskan-graphite) !important;
	}

	body.home:not(.is-header-scrolled) .header__search .search__button {
		background-color: rgba(255, 255, 255, 0.14);
		border-color: rgba(255, 255, 255, 0.3);
	}
}

.header-templates-v3__wrapper {
	padding-block: 0 !important;
}

.header-templates-v3__row-middle {
	align-items: center;
	border-bottom: 1px solid var(--energoskan-border) !important;
	column-gap: 28px;
	min-height: 86px;
	padding-block: 12px !important;
}

.header-templates-v3__row-bottom {
	align-items: center;
	border: 0 !important;
	min-height: 58px;
	padding-block: 0 !important;
}

.header-templates-v3__row-middle-column--right {
	column-gap: clamp(16px, 2.2vw, 34px) !important;
}

.header-templates-v3__fix-icon-menu {
	display: none !important;

}

.header__logo-text > div,
.header__logo-text > a {
	align-items: flex-start;
	display: flex !important;
	flex-direction: column;
	font-size: 0 !important;
	min-width: 230px;
	text-decoration: none;
	white-space: nowrap;
	width: auto !important;
}

.header__logo-text > div::before,
.header__logo-text > a::before {
	color: var(--energoskan-teal);
	content: "ЭНЕРГОСКАН";
	font-family: var(--font-family);
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -0.035em;
	line-height: 1;
}

.header__logo-text > div::after,
.header__logo-text > a::after {
	color: var(--energoskan-muted);
	content: "ЗАВОД ИНЖЕНЕРНЫХ РЕШЕНИЙ";
	font-family: var(--font-family);
	font-size: 8px;
	font-weight: 600;
	letter-spacing: 0.13em;
	line-height: 1;
	margin-top: 7px;
}

.header-templates-v3__email a,
.header-templates-v3__phone a,
.header-templates-v3__open-mode,
.header-templates-v3__address-title,
.header-templates-v3__address-text,
.header-templates-v3__socials-description {
	color: var(--energoskan-graphite) !important;
}

.header-templates-v3__email a,
.header-templates-v3__phone a {
	font-weight: 600;
}

.header-templates-v3__address-text,
.header-templates-v3__open-mode,
.header-templates-v3__socials-description {
	font-size: 12px;
}

.header-templates-v3__icon svg path {
	fill: var(--energoskan-teal);
}

.header-templates-v3__socials-items img {
	height: 30px !important;
	width: 30px !important;
}

.header__search .search__button {
	background-color: var(--energoskan-light);
	border: 1px solid var(--energoskan-border);
	border-radius: 8px;
	height: 42px;
	width: 42px;
}

.header__logo img,
.header .logo-custom {
	max-height: 54px;
	width: auto;
}

.header__menu a {
	color: var(--energoskan-graphite);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.01em;
	position: relative;
}

.header-templates-v3 .header__menu {
	width: 100%;
}

.header-templates-v3 .responsive-menu__wrapper {
	justify-content: center;
	min-height: 58px;
}

.header__menu > ul > li > a::after {
	background: var(--energoskan-orange);
	bottom: -9px;
	content: "";
	height: 2px;
	left: 50%;
	position: absolute;
	transform: translateX(-50%) scaleX(0);
	transition: transform 180ms ease;
	width: 24px;
}

.header__menu > ul > li:hover > a::after,
.header__menu > ul > li.current-menu-item > a::after,
.header__menu > ul > li.current-menu-ancestor > a::after {
	transform: translateX(-50%) scaleX(1);
}

/* Buttons and controls */
.btn,
.wp-element-button,
.woocommerce button.button,
.woocommerce a.button,
input[type="submit"] {
	border-radius: var(--border-radius-btn);
	font-family: var(--font-family);
	font-weight: 700;
	letter-spacing: 0.01em;
	min-height: 48px;
	transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.btn--accent-tertiary,
.wp-block-button:not(.is-style-outline) .wp-element-button,
input[type="submit"] {
	background: var(--energoskan-orange);
	border-color: var(--energoskan-orange);
	box-shadow: 0 10px 24px rgba(245, 130, 32, 0.22);
	color: var(--energoskan-white);
}

.btn--accent-tertiary:hover,
.wp-block-button:not(.is-style-outline) .wp-element-button:hover,
input[type="submit"]:hover {
	background: var(--energoskan-orange-dark);
	border-color: var(--energoskan-orange-dark);
	box-shadow: 0 14px 30px rgba(245, 130, 32, 0.3);
	color: var(--energoskan-white);
	transform: translateY(-2px);
}

.btn--big {
	min-height: 54px;
	padding-inline: 28px;
}

/* Homepage rhythm */
.home main > *:not(:first-child),
.blog:not(.home) main > *:not(:first-child) {
	position: relative;
}

.home main:not(.es-home) > *:not([class*="factory-section--"]):nth-child(even),
.blog:not(.home) main > *:not([class*="factory-section--"]):nth-child(even) {
	background-color: var(--energoskan-light);
}

/* Legacy hero fallback */
.block-hq-first-section-1 {
	background: var(--energoskan-graphite);
	margin-bottom: var(--margin-bottom-section-desktop);
}

.block-hq-first-section-1__inner {
	min-height: clamp(590px, 72vh, 780px);
	position: relative;
}

.block-hq-first-section-1__inner::after {
	background:
		linear-gradient(124deg, rgba(29, 37, 44, 0.2) 0 55%, transparent 55%),
		linear-gradient(124deg, transparent 0 77%, rgba(0, 110, 120, 0.34) 77% 89%, rgba(245, 130, 32, 0.72) 89% 90%, transparent 90%);
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
}

.block-hq-first-section-1__inner .container {
	position: relative;
	z-index: 1;
}

.block-hq-first-section-1__block {
	max-width: 800px;
}

.block-hq-first-section-1__heading {
	font-size: clamp(2.65rem, 5vw, 4.8rem);
	font-weight: 800;
	letter-spacing: -0.045em;
	line-height: 1.02;
	text-wrap: balance;
}

.block-hq-first-section-1__description {
	font-size: clamp(1rem, 1.5vw, 1.25rem);
	line-height: 1.55;
	max-width: 680px;
}

.block-hq-first-section-1__pagination .swiper-pagination-bullet-active {
	background: var(--energoskan-orange);
}

/* Shared premium cards */
.block-hq-info-block-2__card,
.block-hq-latest-post-1__card,
.products .product,
.woocommerce ul.products li.product {
	background: var(--energoskan-white);
	border: 1px solid var(--energoskan-border);
	border-radius: var(--border-radius-block);
	box-shadow: 0 8px 28px rgba(29, 37, 44, 0.055);
	overflow: hidden;
	transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.block-hq-info-block-2__card:hover,
.block-hq-latest-post-1__card:hover,
.products .product:hover,
.woocommerce ul.products li.product:hover {
	border-color: rgba(0, 110, 120, 0.45);
	box-shadow: var(--energoskan-shadow-hover);
	transform: translateY(-5px);
}

.block-hq-info-block-2__card {
	position: relative;
}

.block-hq-info-block-2__card::before {
	background: var(--energoskan-teal);
	content: "";
	height: 4px;
	left: 0;
	position: absolute;
	top: 0;
	width: 100%;
}

.block-hq-info-block-2__card-image img {
	border-radius: 50%;
	height: 62px;
	object-fit: contain;
	width: 62px;
}

.block-hq-info-block-2__card-title {
	color: var(--energoskan-graphite);
	font-size: 15px;
	font-weight: 700;
}

/* WooCommerce catalog: product and category cards (shop, category archive, related) */
.catalog__product {
	background: var(--energoskan-white);
	border: 1px solid var(--energoskan-border);
	border-radius: 14px;
	box-shadow: none;
	overflow: hidden;
	padding: 18px 18px 20px;
	transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.catalog__product:hover {
	border-color: rgba(0, 110, 120, 0.4);
	box-shadow: var(--energoskan-shadow-hover);
	transform: translateY(-5px);
}

.catalog__product-img {
	background: var(--energoskan-light);
	border-radius: 10px;
	margin-left: -18px;
	margin-right: -18px;
	width: calc(100% + 36px);
}

.catalog__product-img img {
	transition: transform 450ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.catalog__product:hover .catalog__product-img img {
	opacity: 1;
	transform: scale(1.04);
}

.catalog__product-heading a {
	color: var(--energoskan-graphite);
	font-weight: 600;
}

.catalog__product-excerpt {
	color: var(--energoskan-muted);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	font-size: 13px;
	line-height: 1.5;
	margin: 8px 0 0;
	overflow: hidden;
}

.catalog__product-status-on {
	color: var(--energoskan-teal-dark);
}

.catalog__product-status-off {
	color: var(--energoskan-muted);
}

.catalog__product-price-request {
	color: var(--energoskan-teal-dark);
	display: block;
	font-size: var(--font-size-normal-super);
	font-weight: 600;
	margin-bottom: var(--distance4, 10px);
}

.catalog__product-price--simple .price-old__sale {
	display: none;
}

.catalog__product-sale {
	background: var(--energoskan-graphite);
}

.catalog__product-hit {
	background: var(--energoskan-teal);
}

.catalog__product-button,
.woocommerce a.button.catalog__product-button {
	background: var(--energoskan-teal);
	border-radius: var(--border-radius-block);
}

.catalog__product-button:hover,
.woocommerce a.button.catalog__product-button:hover {
	background: var(--energoskan-teal-dark);
}

/* Category tiles (subcategory grid on /shop/ and taxonomy archives) */
.product-category {
	background: var(--energoskan-white);
	border: 1px solid var(--energoskan-border);
	border-radius: 14px;
	overflow: hidden;
	padding-bottom: 20px;
	transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.product-category:hover {
	border-color: rgba(0, 110, 120, 0.4);
	box-shadow: var(--energoskan-shadow-hover);
	transform: translateY(-5px);
}

.product-category img {
	transition: transform 450ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.product-category:hover img {
	transform: scale(1.04);
}

.woocommerce-loop-category__title {
	color: var(--energoskan-graphite);
	font-weight: 700;
	margin: 16px 20px 0;
}

.woocommerce-loop-category__title .count {
	background: var(--energoskan-teal-soft);
	border-radius: 20px;
	color: var(--energoskan-teal-dark);
	font-size: 12px;
	font-weight: 600;
	margin-left: 6px;
	padding: 2px 10px;
}

.catalog__category-note {
	color: var(--energoskan-muted);
	font-size: 13px;
	line-height: 1.5;
	margin: 8px 20px 0;
}

/* About and gallery */
.block-hq-about-us-1 {
	background: var(--energoskan-light);
	border: 1px solid var(--energoskan-border);
	border-radius: 24px;
	box-shadow: var(--energoskan-shadow);
	overflow: hidden;
	position: relative;
}

.block-hq-about-us-1::before {
	background: linear-gradient(135deg, var(--energoskan-teal) 0 78%, var(--energoskan-orange) 78% 82%, transparent 82%);
	content: "";
	height: 9px;
	left: 0;
	position: absolute;
	top: 0;
	width: 100%;
	z-index: 2;
}

.block-hq-about-us-1__description {
	color: var(--energoskan-muted);
	line-height: 1.72;
}

.block-hq-about-us-1__image,
.block-hq-gallery-2__slide {
	border-radius: var(--border-radius-image);
	overflow: hidden;
}

.block-hq-about-us-1__image img,
.block-hq-gallery-2__slide img,
.woocommerce ul.products li.product img {
	transition: transform 450ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.block-hq-about-us-1__image:hover img,
.block-hq-gallery-2__slide:hover img,
.woocommerce ul.products li.product:hover img {
	transform: scale(1.025);
}

/* Banner */
.block-hq-banner-1__image {
	border-radius: 24px;
	min-height: 440px;
	overflow: hidden;
	position: relative;
}

.block-hq-banner-1__image img {
	height: 100%;
	inset: 0;
	object-fit: cover;
	position: absolute;
	width: 100%;
}

.block-hq-banner-1__image::after {
	background: linear-gradient(128deg, transparent 0 62%, rgba(0, 110, 120, 0.5) 62% 86%, rgba(245, 130, 32, 0.88) 86% 87%, transparent 87%);
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
}

.block-hq-banner-1__info {
	position: relative;
	z-index: 1;
}

/* Forms */
.block-hq-contact-form-1 {
	background: var(--energoskan-teal-soft);
	border: 1px solid rgba(0, 110, 120, 0.18);
	border-radius: 24px;
	overflow: hidden;
}

.block-hq-contact-form-1__title {
	color: var(--energoskan-graphite);
	font-size: clamp(2rem, 3vw, 3rem);
	font-weight: 700;
	letter-spacing: -0.035em;
	line-height: 1.12;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
select,
textarea {
	background: var(--energoskan-white);
	border: 1px solid #cbd7dc;
	border-radius: 8px;
	color: var(--energoskan-graphite);
	font-family: var(--font-family);
	min-height: 48px;
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):focus,
select:focus,
textarea:focus {
	border-color: var(--energoskan-teal);
	box-shadow: 0 0 0 4px rgba(0, 110, 120, 0.11);
}

/* WooCommerce */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	color: var(--energoskan-graphite);
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.35;
}

.woocommerce .price {
	color: var(--energoskan-teal);
	font-weight: 700;
}

.woocommerce span.onsale {
	background: var(--energoskan-orange);
	color: var(--energoskan-white);
}

/* Footer */
.footer {
	background:
		linear-gradient(135deg, transparent 0 68%, rgba(0, 110, 120, 0.18) 68% 86%, rgba(245, 130, 32, 0.7) 86% 86.3%, transparent 86.3%),
		var(--energoskan-graphite);
	color: rgba(255, 255, 255, 0.78);
}

.footer a,
.footer__description,
.footer__copyright {
	color: rgba(255, 255, 255, 0.78);
}

.footer a:hover {
	color: var(--energoskan-orange);
}

.footer__top,
.footer__middle,
.footer__bottom {
	border-color: rgba(255, 255, 255, 0.12);
}

.footer__logo img,
.footer .logo-custom {
	max-height: 58px;
	width: auto;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}

@media (max-width: 1024px) {
	.container {
		width: min(100% - 32px, 1440px);
	}

	.header__inner {
		min-height: 72px;
	}

	.header-templates-v3__email,
	.header-templates-v3__address,
	.header-templates-v3__socials {
		display: none !important;
	}

	.block-hq-first-section-1__inner {
		min-height: 620px;
	}
}

@media (max-width: 768px) {
	:root {
		--margin-bottom-section-mobile: 48px;
	}

	.container {
		width: min(100% - 24px, 1440px);
	}

	.block-hq-first-section-1 {
		margin-bottom: var(--margin-bottom-section-mobile);
	}

	.hq-widget-3,
	.hq-widget-8,
	.hq-widget-9,
	.hq-widget-10,
	.hq-widget-11,
	.hq-widget-14 {
		padding-block: var(--margin-bottom-section-mobile);
	}

	.block-hq-first-section-1__inner {
		min-height: 560px;
	}

	.header-templates-v3__wrapper {
		display: none !important;
	}

	.header-templates-v3__wrapper-mobile {
		align-items: center;
		background: var(--energoskan-white);
		display: flex !important;
		justify-content: space-between;
		min-height: 68px;
	}

	.header-templates-v3__wrapper-mobile::before {
		color: var(--energoskan-teal);
		content: "ЭНЕРГОСКАН";
		font-size: 18px;
		font-weight: 800;
		letter-spacing: -0.035em;
	}

	.block-hq-first-section-1__heading {
		font-size: clamp(2.15rem, 11vw, 3.4rem);
	}

	.block-hq-first-section-1__description {
		font-size: 1rem;
	}

	.btn,
	.wp-element-button,
	.woocommerce button.button,
	.woocommerce a.button,
	input[type="submit"] {
		min-height: 48px;
	}

	.block-hq-about-us-1,
	.block-hq-banner-1__image,
	.block-hq-contact-form-1 {
		border-radius: 16px;
	}

	.block-hq-banner-1__image {
		min-height: 480px;
	}
}

/* 2026 content-first front page */
.header__logo-text > div::before,
.header__logo-text > a::before { content: "ЗАВОД ЭНЕРГОСКАН"; }
.header__logo-text > div::after,
.header__logo-text > a::after { content: "ЭНЕРГИЯ ТОЧНЫХ РЕШЕНИЙ"; }
.header-templates-v3__wrapper-mobile::before { content: "ЗАВОД ЭНЕРГОСКАН"; }
.header-templates-v3__wrapper-mobile::after { color: var(--energoskan-muted); content: "ЭНЕРГИЯ ТОЧНЫХ РЕШЕНИЙ"; font-size: 7px; font-weight: 700; letter-spacing: .1em; position: absolute; top: 43px; }

/* Brand lockup: retain the approved sign and replace the obsolete text lockup. */
.header__logo { flex: 0 0 350px; max-width: 350px; overflow: visible; }
.header__logo .custom-logo-link {
	align-content: center;
	background-image: linear-gradient(90deg, transparent 0 62px, #fff 62px), url("assets/images/energoskan-logo.png");
	background-position: left center;
	background-repeat: no-repeat;
	background-size: 245px auto;
	display: grid;
	height: 62px;
	padding-left: 76px;
	position: relative;
	width: 350px;
}
.header__logo .custom-logo { height: 1px !important; opacity: 0; position: absolute; width: 1px !important; }
.header__logo .custom-logo-link::before { color: #006e78; content: "ЗАВОД ЭНЕРГОСКАН"; font-size: 20px; font-weight: 800; letter-spacing: -.025em; line-height: 1.05; }
.header__logo .custom-logo-link::after { color: #6b767d; content: "ЭНЕРГИЯ ТОЧНЫХ РЕШЕНИЙ"; font-size: 7px; font-weight: 700; letter-spacing: .11em; line-height: 1.1; margin-top: 6px; }
.footer_templates_v3__top-logo {
	background-image: linear-gradient(90deg, transparent 0 62px, #1d252c 62px), url("assets/images/energoskan-logo.png");
	background-position: left center;
	background-repeat: no-repeat;
	background-size: 245px auto;
	display: grid;
	height: 62px;
	padding-left: 76px;
	position: relative;
	width: 350px;
}
.footer_templates_v3__top-logo .logo-custom { height: 1px !important; opacity: 0; position: absolute; width: 1px !important; }
.footer_templates_v3__top-logo::before { align-self: end; color: #fff; content: "ЗАВОД ЭНЕРГОСКАН"; font-size: 20px; font-weight: 800; letter-spacing: -.025em; }
.footer_templates_v3__top-logo::after { align-self: start; color: rgba(255,255,255,.64); content: "ЭНЕРГИЯ ТОЧНЫХ РЕШЕНИЙ"; font-size: 7px; font-weight: 700; letter-spacing: .11em; margin-top: 5px; }
.catalog__product-hit { display: none !important; }
.footer,
.footer_templates_v3 { background-color: #1d252c !important; }
.footer_templates_v3__column a,
.footer_templates_v3__column p,
.footer_templates_v3__column li { font-size: 13px; line-height: 1.55; }
.header .menu > li > a,
.footer a { transition: color .18s ease, opacity .18s ease; }
.header .menu > li > a:hover { color: #006e78; }
.footer a:hover { color: #f58220; }
.single-product .summary p,
.single-product .woocommerce-Tabs-panel p,
.single-product .woocommerce-Tabs-panel li { color: #3f4e56; font-size: 16px; line-height: 1.75; }
.single-product .product_title { color: #1d252c; line-height: 1.15; }
.catalog__single-tag { display: none; }

/* Technical specification tables inside product descriptions */
.energoskan-specs {
	border-collapse: collapse;
	margin: 20px 0;
	width: 100%;
}

.energoskan-specs th,
.energoskan-specs td {
	border-bottom: 1px solid var(--energoskan-border);
	padding: 12px 16px;
	text-align: left;
	vertical-align: top;
}

.energoskan-specs th {
	background: var(--energoskan-light);
	color: var(--energoskan-graphite);
	font-weight: 600;
	width: 38%;
}

.energoskan-specs td {
	color: var(--energoskan-muted);
}

.energoskan-specs tr:last-child th,
.energoskan-specs tr:last-child td {
	border-bottom: none;
}

@media (max-width: 600px) {
	.energoskan-specs,
	.energoskan-specs tbody,
	.energoskan-specs tr,
	.energoskan-specs th,
	.energoskan-specs td {
		display: block;
		width: auto;
	}

	.energoskan-specs th {
		border-bottom: 0;
		padding-bottom: 4px;
	}

	.energoskan-specs td {
		padding-top: 0;
	}
}

.factory-home { background: #fff; color: #1d252c; }
.factory-shell { box-sizing: border-box; margin-inline: auto; max-width: 1280px; padding-inline: 32px; width: 100%; }
.factory-section { padding-block: 88px; }
.factory-section--muted { background: #f6f8fa; }
.factory-section--dark { background: #1d252c; color: #fff; transform: translateZ(0); }
.factory-kicker { color: #006e78; display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; margin-bottom: 14px; text-transform: uppercase; }
.factory-heading { margin-bottom: 34px; max-width: 700px; }
.factory-heading--row { align-items: end; display: flex; justify-content: space-between; max-width: none; }
.factory-home h2 { font-size: clamp(30px, 3vw, 44px); line-height: 1.12; margin: 0 0 16px; }
.factory-home p { color: #64737b; font-size: 16px; line-height: 1.7; }
.factory-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.factory-button { align-items: center; border-radius: 5px; display: inline-flex; font-weight: 700; justify-content: center; min-height: 52px; padding: 0 24px; }
.factory-button--orange { background: #f58220; color: #fff !important; }
.factory-button--orange:hover { background: #dd6c0c; }
.factory-button--light { border: 1px solid rgba(255,255,255,.7); color: #fff !important; }
.factory-button--outline { border: 1px solid #006e78; color: #006e78 !important; }
.factory-about { align-items: center; display: grid; gap: 70px; grid-template-columns: 1fr 1fr; }
.factory-about__media img { aspect-ratio: 4 / 3; border-radius: 10px; height: auto; object-fit: cover; width: 100%; }
.factory-metrics { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); margin: 34px 0; }
.factory-metrics div { border-left: 2px solid #f58220; padding-left: 16px; }
.factory-metrics strong { display: block; font-size: 34px; line-height: 1; }
.factory-metrics span { color: #64737b; display: block; font-size: 12px; margin-top: 8px; }
.factory-text-link { color: #006e78 !important; font-weight: 700; }
.factory-paths { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
.factory-paths > a { background: #fff; border: 1px solid #dce5e7; border-radius: 8px; color: #1d252c; display: flex; flex-direction: column; min-height: 270px; padding: 26px; transition: border-color .2s, transform .2s; }
.factory-paths > a:first-child { border: 2px solid #f58220; }
.factory-paths > a:hover { border-color: #006e78; transform: translateY(-4px); }
.factory-paths b { color: #f58220; font-size: 12px; }
.factory-paths h3 { font-size: 18px; line-height: 1.35; margin: 28px 0 10px; }
.factory-paths p { font-size: 13px; margin: 0 0 20px; }
.factory-paths span { color: #006e78; font-size: 13px; font-weight: 700; margin-top: auto; }
.factory-categories { display: grid; gap: 1px; grid-template-columns: repeat(3, 1fr); background: #dce5e7; border: 1px solid #dce5e7; }
.factory-categories a { background: #fff; color: #1d252c; min-height: 220px; padding: 30px; position: relative; }
/* Avoid an empty grid cell showing the container background when the
   category count doesn't fill a full row of 3 (desktop 3-column layout only —
   the 2-column/1-column responsive layouts below never leave a gap for 4 items). */
@media (min-width: 901px) {
	.factory-categories a:last-child:nth-child(3n+1) { grid-column: span 3; }
	.factory-categories a:last-child:nth-child(3n+2) { grid-column: span 2; }
}
.factory-categories a:hover { background: #f6f8fa; }
.factory-categories span { color: #f58220; font-size: 12px; font-weight: 700; }
.factory-categories h3 { font-size: 20px; line-height: 1.35; margin: 36px 35px 10px 0; }
.factory-categories p { font-size: 12px; }
.factory-categories b { bottom: 28px; color: #006e78; font-size: 24px; position: absolute; right: 30px; }
.factory-production { display: grid; gap: 90px; grid-template-columns: .9fr 1.1fr; }
.factory-production h2 { color: #fff; }
.factory-production p { color: rgba(255,255,255,.64); }
.factory-production ol { list-style: none; margin: 0; padding: 0; }
.factory-production li { align-items: center; border-bottom: 1px solid rgba(255,255,255,.14); display: grid; gap: 24px; grid-template-columns: 46px 1fr; padding: 18px 0; }
.factory-production li b { color: #f58220; }
.factory-production li span { color: rgba(255,255,255,.6); font-size: 13px; }
.factory-production li strong { color: #fff; display: block; font-size: 17px; margin-bottom: 4px; }
.factory-products { display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
.factory-product { border: 1px solid #dce5e7; border-radius: 8px; color: #1d252c; display: flex; flex-direction: column; min-width: 0; overflow: hidden; padding: 18px; }
.factory-product__image { align-items: center; background: #f5f7f7; display: flex; height: 210px; justify-content: center; margin: -18px -18px 18px; }
.factory-product__image img { height: 100%; object-fit: contain; width: 100%; }
.factory-product > span { color: #006e78; font-size: 11px; }
.factory-product h3 { font-size: 16px; line-height: 1.4; margin: 12px 0 28px; }
.factory-product > b { color: #f58220; font-size: 13px; margin-top: auto; }
.factory-contact { background: #f0f7f8; }
.factory-contact__inner { align-items: center; display: flex; justify-content: space-between; }
.factory-contact__inner > div:first-child { max-width: 700px; }

/* Long-form corporate pages */
.factory-page-content { background: #fff; box-sizing: border-box; color: #1d252c; margin-inline: auto; max-width: 1340px; padding: 12px 32px 88px; width: 100%; }
.factory-page-lead { background: #1d252c; border-radius: 10px; color: #fff; margin: 24px 0 58px; overflow: hidden; padding: clamp(34px, 5vw, 70px); position: relative; }
.factory-page-lead::after { background: #006e78; content: ''; height: 180%; opacity: .28; position: absolute; right: -5%; top: -35%; transform: skewX(-18deg); width: 30%; }
.factory-page-lead > * { max-width: 850px; position: relative; z-index: 1; }
.factory-page-lead > span { color: #f58220; display: block; font-size: 12px; font-weight: 800; letter-spacing: .14em; margin-bottom: 20px; text-transform: uppercase; }
.factory-page-lead p { color: #fff; font-size: clamp(22px, 2.6vw, 38px); font-weight: 700; letter-spacing: -.025em; line-height: 1.25; margin: 0 0 30px; }
.factory-page-lead a { color: #fff; font-weight: 700; }
.factory-page-sections { display: grid; gap: 1px; grid-template-columns: repeat(2, minmax(0, 1fr)); background: #dce5e7; border: 1px solid #dce5e7; }
.factory-page-section { background: #fff; min-height: 250px; padding: clamp(26px, 3.5vw, 48px); }
.factory-page-section:nth-child(4n+2), .factory-page-section:nth-child(4n+3) { background: #f5f8f8; }
.factory-page-section h2 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; margin: 0 0 22px; }
.factory-page-section p, .factory-page-section li { color: #3f4e56; font-size: 16px; line-height: 1.75; }
.factory-page-section ul { list-style: none; margin: 0; padding: 0; }
.factory-page-section li { border-bottom: 1px solid #e1e8ea; padding: 10px 0 10px 22px; position: relative; }
.factory-page-section li::before { color: #f58220; content: '—'; left: 0; position: absolute; }
.factory-page-cta { align-items: center; background: #f0f7f8; display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr) auto; margin-top: 58px; padding: clamp(30px, 5vw, 60px); }
.factory-page-cta > div:last-child { display: flex; flex-direction: column; gap: 10px; }
.factory-page-cta > div > span { color: #006e78; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.factory-page-cta h2 { font-size: clamp(26px, 3vw, 40px); margin: 10px 0 12px; }
.factory-page-cta p { color: #5e6e76; line-height: 1.7; margin: 0; max-width: 760px; }

/* Brandbook-aligned restrained interaction layer. */
.factory-button,
.factory-text-link,
.factory-paths > a,
.factory-categories a,
.factory-product,
.factory-page-section,
.single-product .woocommerce-tabs .tabs li,
.woocommerce ul.products li.product {
	transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease, transform .2s ease;
}
.factory-button:hover { transform: translateY(-2px); }
.factory-text-link:hover { color: #f58220 !important; }
.factory-paths > a:hover,
.factory-product:hover,
.woocommerce ul.products li.product:hover { box-shadow: 0 14px 34px rgba(29,37,44,.09); transform: translateY(-4px); }
.factory-categories a:hover { box-shadow: inset 0 -3px 0 #f58220; transform: translateY(-2px); z-index: 1; }
.factory-product:hover .factory-product__image img,
.woocommerce ul.products li.product:hover img { transform: scale(1.025); }
.factory-product__image img,
.woocommerce ul.products li.product img { transition: transform .35s ease; }
.factory-page-section:hover { border-color: rgba(0,110,120,.28); box-shadow: inset 3px 0 0 #006e78; }
.single-product .woocommerce-tabs .tabs li:hover { background: #f6f8fa; color: #006e78; }
.factory-home :focus-visible,
.factory-page-content :focus-visible { outline: 3px solid rgba(245,130,32,.55); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
	.factory-button,
	.factory-paths > a,
	.factory-categories a,
	.factory-product,
	.factory-product__image img,
	.woocommerce ul.products li.product,
	.woocommerce ul.products li.product img { transform: none !important; transition-duration: .01ms !important; }
}

/* Vertical product tabs: navigation left, content right. */
.single-product .woocommerce-tabs.wc-tabs-wrapper { align-items: start; display: grid; gap: 48px; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); }
.single-product .woocommerce-tabs .tabs { border: 0; border-left: 1px solid #dce5e7; border-radius: 0; display: flex; flex-direction: column; gap: 0; margin: 0; overflow: visible; padding: 0; }
.single-product .woocommerce-tabs .tabs li { border-left: 3px solid transparent; font-size: 15px; margin-left: -2px; padding: 16px 20px; white-space: normal; }
.single-product .woocommerce-tabs .tabs li.active { background: #f6f8fa; border-left-color: #f58220; color: #1d252c; }
.single-product .woocommerce-tabs .tabs li.active::after { content: none; }
.single-product .woocommerce-tabs .woocommerce-Tabs-panel { margin: 0; min-width: 0; }

@media (max-width: 900px) {
	.factory-section { padding-block: 64px; }
	.factory-about, .factory-production { gap: 40px; grid-template-columns: 1fr; }
	.factory-paths, .factory-products { grid-template-columns: repeat(2, 1fr); }
	.factory-categories { grid-template-columns: repeat(2, 1fr); }
	.factory-contact__inner { align-items: flex-start; flex-direction: column; }
	.factory-page-cta { grid-template-columns: 1fr; }
	.header__logo { flex-basis: 300px; max-width: 300px; }
	.header__logo .custom-logo-link { width: 300px; }
	.footer_templates_v3__column,
	.footer_templates_v3__column a { min-width: 0; overflow-wrap: anywhere; }
}

@media (max-width: 680px) {
	.factory-shell { padding-inline: 20px; }
	.factory-page-content { padding-inline: 20px; }
	.factory-page-sections { grid-template-columns: 1fr; }
	.factory-page-section:nth-child(n) { background: #fff; min-height: 0; }
	.factory-page-section:nth-child(even) { background: #f5f8f8; }
	.header-templates-v3__wrapper-mobile::before { content: "ЗАВОД ЭНЕРГОСКАН"; }
	.header-templates-v3__wrapper-mobile::after { content: "ЭНЕРГИЯ ТОЧНЫХ РЕШЕНИЙ"; }
	.factory-heading--row { align-items: flex-start; flex-direction: column; gap: 12px; }
	.factory-metrics, .factory-paths, .factory-categories, .factory-products { grid-template-columns: 1fr; }
	.factory-categories a { min-height: 180px; }
	.single-product .woocommerce-tabs.wc-tabs-wrapper { display: block; }
	.single-product .woocommerce-tabs .tabs { border: 1px solid #dce5e7; flex-direction: row; margin-bottom: 24px; overflow-x: auto; }
	.single-product .woocommerce-tabs .tabs li { border-left: 0; border-bottom: 3px solid transparent; flex: 0 0 auto; margin: 0; padding: 14px 16px; }
	.single-product .woocommerce-tabs .tabs li.active { border-bottom-color: #f58220; }
}

/* Correct text-only theme logo mode used on production. */
.header__logo-text {
	align-items: center;
	box-sizing: border-box;
	display: flex;
	gap: 14px;
	height: 62px;
	max-width: 360px;
	width: 360px;
}
.header__logo-text::before {
	background: url("assets/images/energoskan-logo.png") left center / 268px auto no-repeat;
	content: "";
	display: block;
	flex: 0 0 64px;
	height: 62px;
	width: 64px;
}
.header__logo-text span { display: none !important; }
.header__logo-text > div {
	align-items: flex-start !important;
	display: flex !important;
	flex-direction: column;
	font-size: 0 !important;
	min-width: 270px !important;
}
.header__logo-text > div::before { color: #006e78; content: "ЗАВОД ЭНЕРГОСКАН"; font-size: 20px; font-weight: 800; letter-spacing: -.025em; line-height: 1.05; }
.header__logo-text > div::after { color: #6b767d; content: "ЭНЕРГИЯ ТОЧНЫХ РЕШЕНИЙ"; font-size: 7px; font-weight: 700; letter-spacing: .11em; line-height: 1.1; margin-top: 6px; }
.footer__logo-text {
	align-content: center;
	background: url("assets/images/energoskan-logo.png") left center / 268px auto no-repeat;
	box-sizing: border-box;
	display: grid;
	font-size: 0 !important;
	height: 62px;
	padding-left: 78px;
	width: 360px;
}
.footer__logo-text span { display: none !important; }
.footer__logo-text::before { align-self: end; color: #fff; content: "ЗАВОД ЭНЕРГОСКАН"; font-size: 20px; font-weight: 800; letter-spacing: -.025em; line-height: 1.05; white-space: nowrap; }
.footer__logo-text::after { align-self: start; color: rgba(255,255,255,.64); content: "ЭНЕРГИЯ ТОЧНЫХ РЕШЕНИЙ"; font-size: 7px; font-weight: 700; letter-spacing: .11em; margin-top: 6px; white-space: nowrap; }

/* Canonical lockup injected for every header/footer template variant. */
.header__logo > img { opacity: 0; }
.header__logo.is-lockup-ready,
.footer_templates_v3__top-logo.is-lockup-ready {
	align-content: initial;
	background: none !important;
	box-sizing: border-box;
	display: flex !important;
	height: auto;
	min-height: 62px;
	padding: 0 !important;
	width: 360px;
}
.header__logo.is-lockup-ready::before,
.header__logo.is-lockup-ready::after,
.footer_templates_v3__top-logo.is-lockup-ready::before,
.footer_templates_v3__top-logo.is-lockup-ready::after { content: none !important; display: none !important; }
.header__logo.is-lockup-ready > *,
.footer_templates_v3__top-logo.is-lockup-ready > * { margin: 0 !important; }
.energoskan-lockup {
	align-items: center;
	color: #006e78 !important;
	display: flex !important;
	flex-direction: row !important;
	gap: 14px;
	min-height: 62px;
	text-decoration: none !important;
	width: max-content;
}
.energoskan-lockup__sign {
	background: url("assets/images/energoskan-logo.png") left center / 268px auto no-repeat;
	display: block;
	flex: 0 0 64px;
	height: 62px;
	width: 64px;
}
.energoskan-lockup__copy { align-items: flex-start; display: flex !important; flex-direction: column !important; justify-content: center; }
.energoskan-lockup__copy strong { color: #006e78; font-size: 20px; font-weight: 800; letter-spacing: -.025em; line-height: 1.05; white-space: nowrap; }
.energoskan-lockup__copy small { color: #6b767d; font-size: 7px; font-weight: 700; letter-spacing: .11em; line-height: 1.1; margin-top: 6px; white-space: nowrap; }
.energoskan-lockup--dark .energoskan-lockup__copy strong { color: #fff; }
.energoskan-lockup--dark .energoskan-lockup__copy small { color: rgba(255,255,255,.64); }
.energoskan-lockup:hover { opacity: .82; }

@media (max-width: 680px) {
	.header-templates-v3__wrapper-mobile {
		background: #fff url("assets/images/energoskan-logo.png") 18px center / 210px auto no-repeat;
		box-sizing: border-box;
		display: flex !important;
		min-height: 72px;
		padding-left: 78px;
		position: relative;
	}
	.header-templates-v3__wrapper-mobile::before { font-size: 14px; margin-left: 0; }
	.header-templates-v3__wrapper-mobile::after { left: 78px; top: 45px; }
	.footer__logo-text { background-size: 230px auto; padding-left: 68px; width: min(100%, 330px); }
	.footer__logo-text::before { font-size: 16px; }
	.energoskan-lockup { gap: 10px; }
	.energoskan-lockup__sign { background-size: 230px auto; flex-basis: 55px; height: 54px; width: 55px; }
	.energoskan-lockup__copy strong { font-size: 15px; }
	.energoskan-lockup__copy small { font-size: 6px; letter-spacing: .07em; }
}
