/*
 * Energoskan factory system for internal pages and WooCommerce.
 * The dark areas communicate the factory; the light areas are working
 * surfaces for specifications, comparison and long-form reading.
 */

/* Legal content uses the brand's reading palette, outside the dark hero. */
body.privacy-policy #content .article__content,
body.privacy-policy #content .article__content :is(p, li, strong, h2, h3, h4) {
	color: #1d252c;
	font-family: Montserrat, Arial, sans-serif;
}
body.privacy-policy #content .article__content {
	max-width: 960px;
	font-size: 16px;
	line-height: 1.75;
	overflow-wrap: break-word;
}
body.privacy-policy #content .article__content :is(h2, h3, h4) {
	font-size: clamp(22px, 2.1vw, 30px);
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -.01em;
	margin: 36px 0 16px;
	word-break: normal;
	hyphens: none;
}
body.privacy-policy #content .article__content > :first-child { margin-top: 0; }
body.privacy-policy #content .article__content a {
	color: #006e78;
	text-decoration: underline;
	text-underline-offset: .15em;
}
body.privacy-policy #content .article__content a:focus-visible {
	outline: 2px solid #f58220;
	outline-offset: 3px;
}

:root {
	--efi-ink: #07161b;
	--efi-ink-2: #0b252c;
	--efi-teal: #00596b;
	--efi-teal-bright: #138b96;
	--efi-orange: #f58220;
	--efi-text: #172a31;
	--efi-muted: #64777d;
	--efi-line: #d9e2e4;
	--efi-paper: #ffffff;
	--efi-surface: #f3f6f6;
	--efi-shell: min(100% - 64px, 1310px);
}

body:not(.home) {
	background: var(--efi-surface) !important;
	color: var(--efi-text);
	font-family: "Montserrat", Arial, sans-serif;
	overflow-x: hidden;
}

body:not(.home) .container {
	width: var(--efi-shell);
}

body:not(.home) main,
body:not(.home) .layout,
body:not(.home) .catalog,
body:not(.home) .article,
body:not(.home) .article__content {
	background: transparent !important;
}

body:not(.home) .header.header-templates-v3 {
	background: rgba(7, 22, 27, .98) !important;
	border-bottom-color: rgba(255, 255, 255, .1) !important;
	position: sticky !important;
	top: 0;
	z-index: 1000;
	transition: box-shadow .25s ease, background .25s ease;
}

body.admin-bar:not(.home) .header.header-templates-v3 { top: 32px; }
body:not(.home).efi-page-scrolled .header.header-templates-v3 {
	background: rgba(7, 22, 27, .94) !important;
	box-shadow: 0 12px 34px rgba(0, 0, 0, .18);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}

body:not(.home) .sub-hero {
	background:
		linear-gradient(90deg, rgba(7, 22, 27, .98), rgba(7, 22, 27, .88)),
		repeating-linear-gradient(90deg, transparent 0, transparent 79px, rgba(255,255,255,.04) 80px) !important;
	border: 0 !important;
	margin: 0;
	padding: clamp(56px, 6vw, 88px) 0 clamp(64px, 7vw, 104px) !important;
	position: relative;
}

body:not(.home) .sub-hero > .container {
	transform: translate3d(0, var(--efi-subhero-shift, 0), 0);
	will-change: transform;
}

body:not(.home) .sub-hero::before {
	background: var(--efi-orange);
	bottom: 0;
	content: "";
	height: 4px;
	left: max(32px, calc((100vw - 1310px) / 2));
	position: absolute;
	width: 72px;
}

body:not(.home) .sub-hero::after {
	color: rgba(108, 221, 224, .55);
	content: "ЗАВОД / ИНЖЕНЕРНЫЙ КОНТУР";
	font-family: Consolas, monospace;
	font-size: 8px;
	letter-spacing: .18em;
	right: max(32px, calc((100vw - 1310px) / 2));
	top: 24px;
}

body:not(.home) .sub-hero .title-h1,
body:not(.home) .sub-hero__title,
body:not(.home) .sub-hero__title .title-h1 {
	color: #f8fbfb !important;
	font-family: "Montserrat", Arial, sans-serif;
	font-size: clamp(2.5rem, 4.45vw, 4.7rem) !important;
	font-weight: 800;
	letter-spacing: -.055em;
	line-height: .98;
	margin: 30px 0 0;
	max-width: 1120px;
	text-transform: uppercase;
}

body.single-product .sub-hero .title-h1 {
	font-size: clamp(2.2rem, 3.6vw, 3.8rem) !important;
	line-height: 1.02;
	max-width: 1180px;
}

.press-tabs {
	display: flex;
	gap: 10px;
	margin-top: 34px;
}

.press-tabs__item {
	padding: 13px 26px;
	border: 1px solid rgba(255, 255, 255, .22);
	color: #b7c7cb;
	font: 700 10px Consolas, monospace;
	letter-spacing: .08em;
	text-decoration: none !important;
	text-transform: uppercase;
	transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.press-tabs__item:hover {
	border-color: rgba(255, 255, 255, .45);
	color: #fff;
}

.press-tabs__item.is-active {
	background: var(--efi-orange);
	border-color: var(--efi-orange);
	color: #fff;
}

.press-tabs__empty {
	padding: clamp(32px, 5vw, 62px);
	border: 1px solid var(--efi-line);
	background: var(--efi-paper);
	color: var(--efi-muted);
	font-size: 14px;
	line-height: 1.7;
}

.press-tabs__empty p {
	margin: 0 0 16px;
}

.press-tabs__empty a {
	color: var(--efi-orange);
	font-weight: 700;
	text-decoration: none;
}

@media (max-width: 640px) {
	.press-tabs {
		flex-wrap: wrap;
	}
}

body:not(.home) .breadcrumbs,
body:not(.home) .woocommerce-breadcrumb,
body:not(.home) .breadcrumbs a,
body:not(.home) .woocommerce-breadcrumb a {
	color: #7ea0a7 !important;
	font-family: Consolas, monospace;
	font-size: 9px;
	letter-spacing: .08em;
	text-transform: uppercase;
}

body:not(.home) .layout,
body:not(.home) .catalog {
	padding: clamp(56px, 6vw, 92px) 0 clamp(80px, 9vw, 132px) !important;
}

body.single-post .layout {
	margin-bottom: 0 !important;
}

body:not(.home) .layout__wrapper--sidebar {
	grid-template-columns: minmax(0, 1fr) 280px;
}

body:not(.home) .title-h2,
body:not(.home) .catalog .title-h2,
body:not(.home) .catalog h2:not(.woocommerce-loop-category__title):not(.woocommerce-loop-product__title) {
	color: var(--efi-text) !important;
	font-family: "Montserrat", Arial, sans-serif;
	font-size: clamp(2rem, 3vw, 3.4rem) !important;
	font-weight: 800;
	letter-spacing: -.05em;
	line-height: 1;
	text-transform: none;
}

body:not(.home) .title-h2::after,
body:not(.home) .catalog .title-h2::after {
	background: var(--efi-orange);
	height: 3px;
	margin-top: 18px;
	width: 52px;
}

/* Catalog navigation and sorting */
body:not(.home) .catalog__panel {
	align-items: center;
	background: var(--efi-paper) !important;
	border: 1px solid var(--efi-line);
	border-radius: 0 !important;
	color: var(--efi-muted);
	display: flex;
	justify-content: space-between;
	margin-bottom: 28px;
	padding: 16px 20px;
}

body:not(.home) .catalog__panel select,
body:not(.home) .catalog__panel input {
	background: var(--efi-paper);
	border: 1px solid var(--efi-line);
	border-radius: 0;
	color: var(--efi-text);
}

body:not(.home) .catalog__categories {
	display: grid !important;
	gap: 1px !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-bottom: clamp(64px, 8vw, 110px);
}

body:not(.home) .factory-category-card,
body:not(.home) .product-category {
	background: var(--efi-paper) !important;
	border: 1px solid var(--efi-line) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	margin: 0 !important;
	min-width: 0;
	overflow: hidden;
}

.factory-category-card > a {
	color: inherit;
	display: grid;
	height: 100%;
	grid-template-rows: 230px 1fr;
	text-decoration: none;
}

.factory-category-card__visual {
	align-items: center;
	background: #edf2f2;
	display: flex;
	justify-content: center;
	overflow: hidden;
	position: relative;
}

.factory-category-card__visual > span {
	color: var(--efi-teal);
	font: 700 9px/1 Consolas, monospace;
	left: 20px;
	letter-spacing: .15em;
	position: absolute;
	top: 18px;
	z-index: 2;
}

.factory-category-card__visual img {
	height: 100% !important;
	margin: 0 !important;
	max-height: none !important;
	object-fit: contain;
	padding: 24px;
	transition: transform .35s ease;
	width: 100% !important;
}

.factory-category-card:hover .factory-category-card__visual img {
	transform: scale(1.035);
}

.factory-category-card__body {
	border-top: 1px solid var(--efi-line);
	display: flex;
	flex-direction: column;
	min-height: 230px;
	padding: 28px;
}

.factory-category-card__body > small,
.factory-product-card__category {
	color: var(--efi-teal);
	font: 700 9px/1.4 Consolas, monospace;
	letter-spacing: .1em;
	text-transform: uppercase;
}

body:not(.home) .factory-category-card .woocommerce-loop-category__title {
	color: var(--efi-text) !important;
	font-family: "Montserrat", Arial, sans-serif;
	font-size: 20px !important;
	font-weight: 750;
	letter-spacing: -.035em;
	line-height: 1.25;
	margin: 18px 0 12px;
}

.factory-category-card__body p {
	color: var(--efi-muted);
	font-size: 13px;
	line-height: 1.65;
	margin: 0 0 22px;
}

.factory-category-card__link {
	color: var(--efi-orange);
	font-size: 11px;
	font-weight: 800;
	margin-top: auto;
	text-transform: uppercase;
}

/* Product grid and cards */
body:not(.home) .catalog__products,
body:not(.home) .woocommerce ul.products {
	display: grid !important;
	gap: 20px !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

body:not(.home) .factory-product-card,
body:not(.home) .catalog__product,
body:not(.home) .woocommerce ul.products li.product {
	background: var(--efi-paper) !important;
	border: 1px solid var(--efi-line) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	display: flex !important;
	flex-direction: column;
	margin: 0 !important;
	min-width: 0;
	padding: 0 !important;
	transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
	width: auto !important;
}

body:not(.home) .factory-product-card:hover,
body:not(.home) .catalog__product:hover,
body:not(.home) .woocommerce ul.products li.product:hover {
	background: var(--efi-paper) !important;
	border-color: #aebfc3 !important;
	box-shadow: 0 18px 46px rgba(20, 52, 59, .09) !important;
	transform: translateY(-4px);
}

.factory-product-card__image {
	align-items: center;
	background: #eef3f3;
	border-bottom: 1px solid var(--efi-line);
	display: flex;
	height: 260px;
	justify-content: center;
	overflow: hidden;
	position: relative;
}

.factory-product-card__image img {
	height: 100% !important;
	margin: 0 !important;
	object-fit: contain;
	padding: 24px;
	transition: transform .35s ease;
	width: 100% !important;
}

.factory-product-card__placeholder {
	align-items: center;
	color: #7b8e92;
	display: flex;
	flex-direction: column;
	gap: 10px;
	justify-content: center;
	text-align: center;
}

.factory-product-card__placeholder b {
	border: 1px solid #b9c7c9;
	color: var(--efi-teal);
	font: 800 38px/1 Montserrat, sans-serif;
	letter-spacing: -.06em;
	padding: 18px 22px 15px;
}

.factory-product-card__placeholder small {
	font: 700 9px/1.4 Consolas, monospace;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.factory-product-card:hover .factory-product-card__image img {
	transform: scale(1.035);
}

.factory-product-card__index {
	color: var(--efi-teal);
	font: 700 9px/1 Consolas, monospace;
	left: 20px;
	letter-spacing: .14em;
	position: absolute;
	top: 18px;
	z-index: 2;
}

.factory-product-card__maker {
	background: var(--efi-orange);
	bottom: 16px;
	color: #fff;
	font: 800 9px/1 Consolas, monospace;
	letter-spacing: .08em;
	padding: 9px 11px;
	position: absolute;
	right: 16px;
	text-transform: uppercase;
	z-index: 2;
}

.energoskan-own-product-badge {
	align-items: center;
	border: 1px solid #b9d8d9;
	color: var(--efi-teal) !important;
	display: inline-flex;
	font: 800 11px/1.3 Montserrat, Arial, sans-serif !important;
	gap: 9px;
	letter-spacing: .035em;
	margin: 0 0 18px !important;
	padding: 10px 13px;
	text-transform: uppercase;
}

.energoskan-own-product-badge span {
	color: var(--efi-orange);
	font-size: 9px;
}

.factory-product-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 26px 26px 22px;
}

body:not(.home) .factory-product-card .woocommerce-loop-product__title,
body:not(.home) .factory-product-card .woocommerce-loop-product__title a {
	color: var(--efi-text) !important;
	font-family: "Montserrat", Arial, sans-serif;
	font-size: 17px !important;
	font-weight: 750;
	letter-spacing: -.03em;
	line-height: 1.35;
	margin: 14px 0 12px;
	text-transform: none;
}

body:not(.home) .factory-product-card .catalog__product-excerpt {
	color: var(--efi-muted) !important;
	display: -webkit-box;
	font-size: 12px;
	line-height: 1.6;
	margin: 0;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

body.efi-motion-ready:not(.home) .efi-reveal {
	opacity: 0;
	transform: translate3d(0, 30px, 0);
	transition: opacity .7s ease, transform .75s cubic-bezier(.2,.7,.2,1);
	transition-delay: var(--efi-delay, 0ms);
}

body.efi-motion-ready:not(.home) .efi-reveal.efi-in-view {
	opacity: 1;
	transform: none;
}

.factory-product-card__specs {
	border-top: 1px solid var(--efi-line);
	display: grid;
	gap: 1px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 22px;
	padding-top: 16px;
}

.factory-product-card__specs span {
	color: var(--efi-text);
	font-size: 11px;
	line-height: 1.35;
}

.factory-product-card__specs small {
	color: #809096;
	display: block;
	font: 700 8px/1.4 Consolas, monospace;
	letter-spacing: .08em;
	margin-bottom: 5px;
	text-transform: uppercase;
}

.factory-product-card__footer {
	align-items: stretch;
	border-top: 1px solid var(--efi-line);
	display: grid;
	grid-template-columns: 1fr auto;
	min-height: 68px;
}

.factory-product-card__footer > div {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 12px 18px 12px 26px;
}

.factory-product-card__footer strong,
.factory-product-card__footer .price,
.factory-product-card__footer .catalog__product-price-request {
	color: var(--efi-teal) !important;
	font-size: 13px;
	font-weight: 800;
}

.factory-product-card__footer small {
	color: #819196;
	font-size: 9px;
	margin-top: 3px;
}

.factory-product-card__button {
	align-items: center;
	background: var(--efi-orange);
	color: #fff !important;
	display: flex;
	font-size: 9px;
	font-weight: 800;
	gap: 12px;
	justify-content: center;
	padding: 0 18px;
	text-transform: uppercase;
}

/* Single product: white technical sheet + dark factory evidence. */
body.single-product .layout {
	background: var(--efi-surface) !important;
}

body.single-product .catalog__single {
	color: var(--efi-text);
}

body.single-product .catalog__single-columns {
	align-items: stretch;
	gap: 0;
}

body.single-product .catalog__single-column:first-child,
body.single-product .catalog__single-column:nth-child(2) {
	background: var(--efi-paper);
	border: 1px solid var(--efi-line);
}

body.single-product .catalog__single-column:nth-child(2) {
	border-left: 0;
	padding: clamp(30px, 4vw, 58px);
}

body.single-product .catalog__single-gallery-main,
body.single-product .catalog__single-gallery-thumbs-slide,
body.single-product .catalog__single-image {
	background: #eef3f3 !important;
	border-color: var(--efi-line) !important;
	border-radius: 0 !important;
}

body.single-product .catalog__single-image {
	align-items: center;
	display: flex;
	height: 100%;
	justify-content: center;
	min-height: 520px;
	padding: 34px;
}

body.single-product .catalog__single-image img {
	max-height: 520px;
	object-fit: contain;
}

body.single-product .catalog__single-rating,
body.single-product .catalog__single-categories,
body.single-product .catalog__single-tags,
body.single-product .catalog__single-excerpt,
body.single-product .catalog__single-additional-information {
	color: var(--efi-muted) !important;
}

body.single-product .catalog__single-category-data,
body.single-product .catalog__single-category-data a,
body.single-product .catalog__single-excerpt-title,
body.single-product .catalog__single-additional-information-title,
body.single-product .woocommerce-product-details__short-description,
body.single-product .woocommerce-product-details__short-description p {
	color: var(--efi-text) !important;
}

body.single-product .catalog__single-additional-information-title,
body.single-product .catalog__single-excerpt-title {
	font-size: 19px;
	font-weight: 800;
	letter-spacing: -.03em;
	margin-bottom: 16px;
}

body.single-product .catalog__single-additional-information,
body.single-product .catalog__single-excerpt {
	border-bottom: 1px solid var(--efi-line);
	margin-bottom: 24px;
	padding-bottom: 24px;
}

body.single-product .catalog__single-additional-information .woocommerce-product-attributes {
	font-size: 12px;
}

body.single-product .catalog__single-box {
	background: var(--efi-ink-2) !important;
	border: 0 !important;
	color: #fff;
	padding: 26px !important;
}

body.single-product .catalog__single-status-on {
	color: #80e4df !important;
}

body.single-product .catalog__single-box .button,
body.single-product .catalog__single-box .btn {
	background: var(--efi-orange) !important;
	min-height: 52px;
	padding: 0 22px !important;
}

.factory-product-assurance {
	background: var(--efi-ink);
	color: #fff;
	display: grid;
	grid-template-columns: .78fr 1.22fr;
	margin: clamp(64px, 8vw, 112px) 0 0;
}

.factory-product-assurance__lead {
	background: var(--efi-ink-2);
	padding: clamp(34px, 5vw, 64px);
}

body.single-product .factory-product-assurance__lead h2 {
	color: #fff !important;
}

.factory-product-assurance__lead > span,
.factory-site-proof__heading > span {
	color: #69d5d4;
	font: 700 9px/1.4 Consolas, monospace;
	letter-spacing: .15em;
	text-transform: uppercase;
}

.factory-product-assurance h2 {
	color: #fff !important;
	font-size: clamp(2rem, 3vw, 3.4rem) !important;
	letter-spacing: -.05em;
	line-height: 1;
	margin: 28px 0 22px;
	text-transform: none !important;
}

.factory-product-assurance__lead p {
	color: #8da1a6;
	font-size: 13px;
	line-height: 1.7;
}

.factory-product-assurance__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.factory-product-assurance__grid article {
	border-bottom: 1px solid rgba(255,255,255,.1);
	border-left: 1px solid rgba(255,255,255,.1);
	padding: 38px;
}

.factory-product-assurance__grid small,
.factory-site-proof__items small {
	color: var(--efi-orange);
	font: 700 9px/1 Consolas, monospace;
}

.factory-product-assurance__grid h3 {
	color: #fff !important;
	font-size: 16px;
	margin: 28px 0 12px;
}

.factory-product-assurance__grid p {
	color: #81979d;
	font-size: 12px;
	line-height: 1.65;
	margin: 0;
}

body.single-product .woocommerce-tabs.wc-tabs-wrapper {
	background: var(--efi-paper);
	border: 1px solid var(--efi-line);
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	margin-top: 1px;
	padding: 0;
}

body.single-product .woocommerce-tabs .tabs {
	background: #edf2f2;
	border: 0;
	border-right: 1px solid var(--efi-line);
	margin: 0;
	padding: 20px 0;
}

body.single-product .woocommerce-tabs .tabs li,
body.single-product .woocommerce-tabs .tabs li a {
	background: transparent !important;
	color: var(--efi-muted) !important;
}

body.single-product .woocommerce-tabs .tabs li {
	border: 0;
	border-left: 3px solid transparent;
	margin: 0;
	padding: 15px 22px;
}

body.single-product .woocommerce-tabs .tabs li.active {
	background: var(--efi-paper) !important;
	border-left-color: var(--efi-orange);
}

body.single-product .woocommerce-tabs .tabs li.active a {
	color: var(--efi-text) !important;
}

body.single-product .woocommerce-Tabs-panel {
	padding: clamp(30px, 5vw, 64px);
}

body.single-product .woocommerce-Tabs-panel,
body.single-product .woocommerce-Tabs-panel p,
body.single-product .woocommerce-Tabs-panel li,
body.single-product .woocommerce-product-attributes th,
body.single-product .woocommerce-product-attributes td {
	color: var(--efi-muted) !important;
}

body.single-product .woocommerce-Tabs-panel h2,
body.single-product .woocommerce-Tabs-panel h3,
body.single-product .woocommerce-Tabs-panel strong {
	color: var(--efi-text) !important;
}

body.single-product .woocommerce-product-attributes,
body.single-product .woocommerce-product-attributes th,
body.single-product .woocommerce-product-attributes td {
	background: transparent !important;
	border-color: var(--efi-line) !important;
}

body.single-product .product-tab-placeholder {
	padding: clamp(20px, 2.5vw, 32px);
	border: 1px solid var(--efi-line);
	background: var(--efi-surface);
}

body.single-product .product-tab-placeholder p {
	margin: 0 0 14px;
	color: var(--efi-muted) !important;
}

body.single-product .product-tab-placeholder a {
	color: var(--efi-orange) !important;
	font-weight: 700;
	text-decoration: none;
}

body.single-product .factory-product-projects {
	margin: clamp(40px, 5vw, 70px) 0;
	padding: clamp(28px, 3.5vw, 46px);
	border: 1px solid var(--efi-line);
	background: var(--efi-paper);
}

body.single-product .factory-product-projects > span {
	color: var(--efi-teal);
	font: 700 9px Consolas, monospace;
	letter-spacing: .15em;
	text-transform: uppercase;
}

body.single-product .factory-product-projects h2 {
	margin: 14px 0;
	color: var(--efi-text);
	font-size: clamp(1.4rem, 2vw, 2rem);
	font-weight: 800;
	letter-spacing: -.04em;
}

body.single-product .factory-product-projects p {
	margin: 0;
	max-width: 70ch;
	color: var(--efi-muted);
	font-size: 14px;
	line-height: 1.7;
}

body.single-product .factory-product-projects a {
	color: var(--efi-orange);
	font-weight: 700;
	text-decoration: none;
}

body.single-product .factory-product-closing-cta {
	margin-top: clamp(40px, 5vw, 70px);
	padding: clamp(32px, 4vw, 56px);
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	align-items: center;
	justify-content: space-between;
	color: #fff;
	background: var(--efi-teal);
}

body.single-product .factory-product-closing-cta span {
	display: block;
	margin-bottom: 8px;
	color: var(--efi-teal-bright);
	font: 700 9px Consolas, monospace;
	letter-spacing: .15em;
	text-transform: uppercase;
}

body.single-product .factory-product-closing-cta h2 {
	margin: 0;
	max-width: 560px;
	color: #fff;
	font-size: clamp(1.4rem, 2.2vw, 2.1rem);
	font-weight: 800;
	letter-spacing: -.04em;
}

/* Editable corporate page system. */
body:not(.home) .article__content,
body:not(.home) .article__content:not(.article__content--fw) {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	color: var(--efi-text);
	padding: 0 !important;
}

body:not(.home) .factory-page-content,
body:not(.home) .factory-landing {
	color: var(--efi-text);
	max-width: none;
	padding: 0;
}

body:not(.home) .factory-page-lead,
.factory-landing__intro {
	background: var(--efi-paper) !important;
	border: 1px solid var(--efi-line) !important;
	margin: 0 0 1px;
	padding: clamp(36px, 6vw, 78px) !important;
}

body:not(.home) .factory-page-lead > span,
.factory-landing__intro > span {
	color: var(--efi-orange) !important;
	font: 700 9px/1.4 Consolas, monospace;
	letter-spacing: .13em;
	text-transform: uppercase;
}

body:not(.home) .factory-page-lead p,
.factory-landing__intro h2 {
	color: var(--efi-text) !important;
	font-size: clamp(2rem, 4vw, 4.3rem);
	font-weight: 800;
	letter-spacing: -.055em;
	line-height: 1;
	margin: 25px 0 0;
	max-width: 980px;
}

.factory-landing__intro p {
	color: var(--efi-muted);
	font-size: 15px;
	line-height: 1.75;
	margin: 24px 0 0;
	max-width: 760px;
}

body:not(.home) .factory-page-sections,
.factory-landing__grid {
	background: var(--efi-line);
	border: 0;
	display: grid;
	gap: 1px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

body:not(.home) .factory-page-section,
body:not(.home) .factory-page-section:nth-child(4n+2),
body:not(.home) .factory-page-section:nth-child(4n+3),
.factory-landing__card {
	background: var(--efi-paper) !important;
	border: 0;
	color: var(--efi-text);
	min-height: 300px;
	padding: clamp(32px, 5vw, 62px);
}

body:not(.home) .factory-page-section h2,
.factory-landing__card h3 {
	color: var(--efi-text) !important;
	font-size: clamp(1.45rem, 2.2vw, 2.5rem);
	font-weight: 800;
	letter-spacing: -.045em;
	line-height: 1.1;
}

body:not(.home) .factory-page-section p,
body:not(.home) .factory-page-section li,
.factory-landing__card p,
.factory-landing__card li {
	color: var(--efi-muted) !important;
	font-size: 14px;
	line-height: 1.7;
}

body:not(.home) .factory-page-section--gallery {
	grid-column: 1 / -1;
	padding: clamp(32px, 5vw, 62px);
}

.factory-page-gallery {
	display: grid;
	gap: 1px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: 34px;
	background: var(--efi-line);
	border: 1px solid var(--efi-line);
}

.factory-page-gallery figure {
	background: var(--efi-surface);
	margin: 0;
	min-width: 0;
	overflow: hidden;
	position: relative;
}

.factory-page-gallery img {
	aspect-ratio: 16 / 9;
	display: block;
	height: auto;
	object-fit: cover;
	transition: transform .4s ease;
	width: 100%;
}

.factory-page-gallery figure:hover img { transform: scale(1.025); }
.factory-page-gallery figcaption {
	background: rgba(7, 22, 27, .88);
	bottom: 12px;
	color: #fff;
	font-size: 9px;
	font-weight: 700;
	left: 12px;
	letter-spacing: .08em;
	padding: 9px 11px;
	position: absolute;
	text-transform: uppercase;
}

.factory-landing__card > span {
	color: var(--efi-orange);
	font: 700 9px/1 Consolas, monospace;
	letter-spacing: .1em;
}

.factory-landing__card a {
	color: var(--efi-teal) !important;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
}

.factory-landing__products {
	background: #e9eeee;
	margin: clamp(64px, 8vw, 110px) 0;
	padding: clamp(40px, 6vw, 74px);
}

.factory-landing__products > h2,
.factory-landing__process > h2 {
	color: var(--efi-text);
	font-size: clamp(2rem, 3.4vw, 3.8rem);
	letter-spacing: -.05em;
	margin: 0 0 38px;
}

body:not(.home) .factory-landing__products > h2 {
	color: var(--efi-text) !important;
}

body.single-product .catalog__single-sub-columns {
	display: block;
}

body.single-product .catalog__single-sub-column:nth-child(2) {
	margin-top: 24px;
}

.factory-landing__process {
	background: var(--efi-ink);
	color: #fff;
	padding: clamp(42px, 7vw, 84px);
}

.factory-landing__process > h2 {
	color: #fff;
}

.factory-landing__steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.factory-landing__steps > div {
	border: 1px solid rgba(255,255,255,.12);
	margin-right: -1px;
	padding: 28px;
}

.factory-landing__steps small {
	color: var(--efi-orange);
	font: 700 9px/1 Consolas, monospace;
}

.factory-landing__steps strong {
	display: block;
	font-size: 15px;
	margin: 28px 0 12px;
}

.factory-landing__steps p {
	color: #82969b;
	font-size: 12px;
	line-height: 1.6;
}

body:not(.home) .factory-page-cta,
.factory-landing__cta {
	align-items: center;
	background: var(--efi-orange) !important;
	color: #fff;
	display: flex;
	gap: 40px;
	justify-content: space-between;
	margin: 1px 0 0;
	padding: clamp(32px, 5vw, 60px);
}

body:not(.home) .factory-page-cta h2,
.factory-landing__cta h2 {
	color: #fff !important;
	font-size: clamp(1.7rem, 3vw, 3.3rem);
	letter-spacing: -.045em;
	margin: 0 0 10px;
}

body:not(.home) .factory-page-cta p,
.factory-landing__cta p {
	color: rgba(255,255,255,.84) !important;
	margin: 0;
}

body:not(.home) .factory-page-cta a,
.factory-landing__cta a {
	background: var(--efi-ink) !important;
	color: #fff !important;
	font-size: 10px;
	font-weight: 800;
	min-width: 220px;
	padding: 18px 24px;
	text-align: center;
	text-transform: uppercase;
}

/* Shared factory proof before the footer. */
.factory-site-proof {
	background: var(--efi-ink);
	border-top: 1px solid rgba(255,255,255,.1);
	color: #fff;
}

.factory-site-proof__inner {
	margin: 0 auto;
	width: var(--efi-shell);
}

.factory-site-proof__heading {
	padding: clamp(56px, 8vw, 100px) 0 48px;
}

.factory-site-proof__heading h2 {
	color: #fff;
	font-size: clamp(2.5rem, 5vw, 5.7rem);
	font-weight: 800;
	letter-spacing: -.065em;
	line-height: .94;
	margin: 28px 0 0;
	text-transform: uppercase;
}

.factory-site-proof__items {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.factory-site-proof__items > div {
	border: 1px solid rgba(255,255,255,.12);
	margin-right: -1px;
	padding: 32px;
}

.factory-site-proof__items strong {
	display: block;
	font-size: 15px;
	margin: 32px 0 12px;
}

.factory-site-proof__items p {
	color: #81969c;
	font-size: 12px;
	line-height: 1.65;
	margin: 0;
}

.factory-site-proof__action {
	align-items: center;
	border-left: 1px solid rgba(255,255,255,.12);
	border-right: 1px solid rgba(255,255,255,.12);
	display: flex;
	justify-content: space-between;
	padding: 34px;
}

.factory-site-proof__action p {
	color: #b7c4c7;
	margin: 0;
}

.factory-site-proof__action a {
	background: var(--efi-orange);
	color: #1d252c;
	font-size: 10px;
	font-weight: 800;
	padding: 18px 22px;
	text-transform: uppercase;
}

/* Articles, forms and service pages use the same paper logic. */
body.archive .article-list__card,
body:not(.home) .layout__sidebar .widget_block,
body:not(.home) .wpcf7,
body:not(.home) .woocommerce-form,
body:not(.home) .woocommerce-cart-form,
body:not(.home) .cart_totals {
	background: var(--efi-paper) !important;
	border: 1px solid var(--efi-line) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: var(--efi-text) !important;
}

body.archive .article-list__heading,
body.archive .article-list__heading a,
body.archive .article-list__card h2,
body.archive .article-list__card h2 a,
body:not(.home) .layout__sidebar h2,
body:not(.home) .layout__sidebar h3 {
	color: var(--efi-text) !important;
}

body.archive .article-list__description,
body.archive .article-list__description p,
body.archive .article-list__date,
body:not(.home) .layout__sidebar li,
body:not(.home) .layout__sidebar p {
	color: var(--efi-muted) !important;
}

body:not(.home) input:not([type="submit"]):not([type="checkbox"]),
body:not(.home) textarea,
body:not(.home) select {
	background: #fff !important;
	border: 1px solid var(--efi-line) !important;
	border-radius: 0 !important;
	color: var(--efi-text) !important;
}

@media (max-width: 1024px) {
	:root { --efi-shell: min(100% - 40px, 1310px); }
	body:not(.home) .catalog__categories,
	body:not(.home) .catalog__products,
	body:not(.home) .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.factory-product-assurance { grid-template-columns: 1fr; }
	.factory-site-proof__items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.factory-landing__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
	:root { --efi-shell: min(100% - 32px, 1310px); }
	body:not(.home) .sub-hero { padding: 48px 0 62px !important; }
	body:not(.home) .sub-hero::after { display: none; }
	body:not(.home) .sub-hero .title-h1,
	body.single-product .sub-hero .title-h1 {
		font-size: clamp(2rem, 10vw, 3.1rem) !important;
		overflow-wrap: normal;
		word-break: normal;
		hyphens: none;
	}
	body:not(.home) .catalog__categories,
	body:not(.home) .catalog__products,
	body:not(.home) .woocommerce ul.products,
	.factory-landing__grid { grid-template-columns: 1fr !important; }
	.factory-category-card > a { grid-template-rows: 210px 1fr; }
	.factory-product-card__image { height: 230px; }
	body.single-product .catalog__single-columns { display: block; }
	body.single-product .catalog__single-column:nth-child(2) { border-left: 1px solid var(--efi-line); border-top: 0; }
	body.single-product .catalog__single-image { min-height: 330px; }
	.factory-product-assurance__grid,
	.factory-site-proof__items,
	.factory-landing__steps { grid-template-columns: 1fr; }
	body.single-product .woocommerce-tabs.wc-tabs-wrapper { display: block; }
	body.single-product .woocommerce-tabs .tabs { border-bottom: 1px solid var(--efi-line); border-right: 0; display: flex; overflow-x: auto; }
	body.single-product .woocommerce-tabs .tabs li { border-bottom: 3px solid transparent; border-left: 0; flex: 0 0 auto; }
	body.single-product .woocommerce-tabs .tabs li.active { border-bottom-color: var(--efi-orange); }
	.factory-landing__cta,
	body:not(.home) .factory-page-cta,
	.factory-site-proof__action { align-items: stretch; flex-direction: column; }
	.factory-landing__cta a,
	body:not(.home) .factory-page-cta a { min-width: 0; }
	.factory-page-gallery { grid-template-columns: 1fr; }
	.factory-site-proof__heading h2 {
		font-size: clamp(1.6rem, 8vw, 3.2rem);
		overflow-wrap: normal;
		word-break: normal;
		hyphens: none;
	}

	body.single-post .sub-hero > .container {
		padding-inline: 0 !important;
	}

	body.single-post .sub-hero__title,
	body.single-post .sub-hero .title-h1 {
		font-size: clamp(1.3rem, 6.7vw, 2.55rem) !important;
	}
}

@media (max-width: 360px) {
	body.single-post .sub-hero__title,
	body.single-post .sub-hero .title-h1 {
		font-size: clamp(1.25rem, 6.4vw, 1.45rem) !important;
	}
}

@media (max-width: 782px) {
	body.admin-bar:not(.home) .header.header-templates-v3 { top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
	body.efi-motion-ready:not(.home) .efi-reveal,
	body.efi-motion-ready:not(.home) .efi-reveal.efi-in-view,
	body:not(.home) .sub-hero > .container {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.factory-product-card,
	.factory-product-card img,
	.factory-category-card img { transition: none !important; }
}
