/* ==========================================================================
   Nordic HomeTech – main stylesheet
   Variants: body.variant-nordic (A) / .variant-polar (B) / .variant-fjord (C)
   ========================================================================== */

/* Fonts (self-hosted, Latin + Latin Extended: ä ö å ß é è à ç ì ù …) */
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-semibold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-var.woff") format("woff"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-italic-var.woff") format("woff"); font-weight: 300 900; font-style: italic; font-display: swap; }

/* ---------- Tokens ---------- */
:root,
.variant-nordic {
	--bg: #f6f7f5;
	--surface: #ffffff;
	--ink: #000000;
	--ink-2: #383d42;
	--muted: #646b71;
	--line: #d6dadc;
	--line-strong: #9aa1a6;
	--accent: #e9a91f;          /* lamp amber: lit states, focus */
	--lamp: #f4b73a;
	--lamp-off: #e3e6e7;
	--btn-bg: #000000;
	--btn-ink: #ffffff;
	--band-bg: #000000;          /* footer + photo overlays */
	--band-ink: #ffffff;
	--band-muted: #b5babe;
	--overlay: rgba(0, 0, 0, .58);
}
.variant-polar {
	--bg: #1b1f23;
	--surface: #22272c;
	--ink: #f3f4f2;
	--ink-2: #cdd2d5;
	--muted: #949ca2;
	--line: #353c42;
	--line-strong: #5d666d;
	--accent: #f4b73a;
	--lamp: #f6c04e;
	--lamp-off: #3a4148;
	--btn-bg: #f4b73a;
	--btn-ink: #000000;
	--band-bg: #000000;
	--band-ink: #f3f4f2;
	--band-muted: #9aa2a8;
	--overlay: rgba(0, 0, 0, .62);
}
.variant-fjord {
	--bg: #f2f6f7;
	--surface: #ffffff;
	--ink: #0f2638;
	--ink-2: #304659;
	--muted: #5a6d7c;
	--line: #d0dce3;
	--line-strong: #93a7b5;
	--accent: #2a93a3;
	--lamp: #f4b73a;
	--lamp-off: #dfe8ec;
	--btn-bg: #0f2638;
	--btn-ink: #ffffff;
	--band-bg: #0f2638;
	--band-ink: #ffffff;
	--band-muted: #a9bccb;
	--overlay: rgba(15, 38, 56, .62);
}

:root {
	--font-head: "Poppins", "Helvetica Neue", Arial, sans-serif;
	--font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
	--radius: 3px;
	--section: clamp(64px, 9vw, 128px);
	--header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink-2);
	font-family: var(--font-body);
	font-size: 1.125rem;
	line-height: 1.6;
	font-kerning: normal;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); font-weight: 600; line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { padding: 0; margin: 0; list-style: none; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--lamp); color: #000; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--btn-bg); color: var(--btn-ink); padding: 10px 16px; }
.skip-link:focus { top: 12px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

.lead { font-size: clamp(1.125rem, 1.5vw, 1.3rem); line-height: 1.55; max-width: 38em; color: var(--ink-2); }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(40px, 6vw, 80px); }
.section-title { font-size: clamp(1.75rem, 3.2vw, 2.6rem); max-width: 20ch; }
.section-title--small { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.section-head .section-title { margin: 0; }

/* ---------- Buttons & links ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 52px; padding: 0 26px;
	font-family: var(--font-head); font-weight: 500; font-size: 1rem; letter-spacing: .01em;
	text-decoration: none; white-space: nowrap; border-radius: var(--radius); border: 2px solid transparent; cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn--primary:hover { background: var(--ink-2); color: var(--bg); }
.variant-polar .btn--primary:hover { background: var(--ink); color: #000; }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--small { min-height: 42px; padding: 0 18px; font-size: .95rem; }
.text-link { display: inline-flex; align-items: center; gap: .45em; font-family: var(--font-head); font-weight: 500; font-size: 1rem; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--line-strong); padding-bottom: 2px; }
.text-link:hover { border-color: var(--ink); }
.text-link .icon { width: 1.1em; height: 1.1em; transition: transform .15s; }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: block; color: var(--ink); flex: none; }
.brand .logo-svg, .brand .custom-logo { height: 42px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.primary-nav .nav-list, .primary-nav > ul { display: flex; gap: 4px; }
.primary-nav li { position: relative; }
.primary-nav a { display: block; padding: 10px 10px; white-space: nowrap; font-family: var(--font-head); font-weight: 500; font-size: .98rem; color: var(--ink); text-decoration: none; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a, .primary-nav .current_page_item > a { box-shadow: inset 0 -3px 0 var(--accent); }
.primary-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 300px; padding: 10px 0;
	background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--ink);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { padding: 9px 20px; font-weight: 400; font-family: var(--font-body); font-size: 1.05rem; box-shadow: none; }
.primary-nav .sub-menu a:hover { background: var(--bg); box-shadow: inset 3px 0 0 var(--accent); }
.site-nav__tools { display: flex; align-items: center; gap: 14px; }
.header-phone { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 500; font-size: .95rem; text-decoration: none; color: var(--ink); white-space: nowrap; }
.header-phone .icon { width: 1.05em; height: 1.05em; }

.lang-switch { display: flex; gap: 2px; font-family: var(--font-head); font-size: .82rem; font-weight: 500; }
.lang-switch a { display: block; padding: 6px 7px; color: var(--muted); text-decoration: none; border-radius: var(--radius); }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current] { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }

.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; align-items: center; justify-content: center; background: none; border: 1.5px solid var(--line-strong); border-radius: var(--radius); color: var(--ink); cursor: pointer; }
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1560px) {
	.header-phone span { display: none; }
}
@media (max-width: 1180px) and (min-width: 981px) {
	.header-phone { display: none; }
	.primary-nav a { padding-inline: 8px; font-size: .92rem; }
}
@media (max-width: 980px) {
	:root { --header-h: 66px; }
	.brand .logo-svg, .brand .custom-logo { height: 34px; }
	.nav-toggle { display: inline-flex; }
	.site-nav {
		position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
		flex-direction: column; align-items: stretch; gap: 0; margin: 0;
		padding: 8px var(--gutter) 32px; background: var(--surface); overflow-y: auto;
		visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s;
	}
	.admin-bar .site-nav { top: calc(var(--header-h) + 46px); }
	.site-nav.is-open { visibility: visible; opacity: 1; }
	.primary-nav .nav-list, .primary-nav > ul { flex-direction: column; gap: 0; }
	.primary-nav a { padding: 14px 0; font-size: 1.2rem; border-bottom: 1px solid var(--line); }
	.primary-nav a:hover { box-shadow: none; }
	.primary-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; padding: 0 0 8px 16px; min-width: 0; }
	.primary-nav .sub-menu a { font-size: 1.05rem; padding: 10px 0; border-bottom: 0; }
	.site-nav__tools { flex-wrap: wrap; padding-top: 24px; gap: 16px; }
	.header-phone span { display: inline; }
	body.nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 104px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title { font-size: clamp(2.2rem, 4.2vw, 3.7rem); line-height: 1.06; letter-spacing: -.025em; font-weight: 600; max-width: 17ch; margin-bottom: .45em; text-wrap: balance; }
.lang-fi .hero__title { hyphens: auto; }
.hero__lead { font-size: clamp(1.15rem, 1.6vw, 1.35rem); max-width: 34em; color: var(--ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__systems { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--ink); }
.hero__systems li { display: inline-flex; align-items: center; gap: 8px; }
.hero__systems .icon { width: 22px; height: 22px; }

/* Photo variant */
.hero--photo { color: var(--band-ink); min-height: min(86vh, 760px); display: flex; align-items: center; }
.hero--photo .hero__media { position: absolute; inset: 0; }
.hero--photo .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero--photo .hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--overlay) 0%, var(--overlay) 45%, rgba(0,0,0,.08) 100%); }
.hero--photo .wrap { position: relative; }
.hero--photo .hero__grid { grid-template-columns: minmax(0, 1fr); }
.hero--photo .hero__text { max-width: 760px; }
.hero--photo .hero__title, .hero--photo .hero__systems { color: #fff; }
.hero--photo .hero__lead { color: rgba(255,255,255,.9); }
.hero--photo .hero__systems { border-color: rgba(255,255,255,.35); }
.hero--photo .btn--primary { background: #fff; color: #000; }
.hero--photo .btn--primary:hover { background: var(--lamp); color: #000; }
.hero--photo .btn--ghost { border-color: #fff; color: #fff; }
.hero--photo .btn--ghost:hover { background: #fff; color: #000; }

/* ---------- Schematic ---------- */
.schematic { margin: 0; color: var(--ink); }
.schematic__svg { width: 100%; height: auto; overflow: visible; }
.schematic .rooms text { font-family: var(--font-body); font-size: 13px; fill: var(--muted); }
.schematic .shell { color: var(--ink); }
.schematic .wire { stroke: var(--ink); }
.schematic .wire--knx { stroke-dasharray: 1; stroke-dashoffset: 0; }
.schematic .wire--dali { stroke: var(--ink-2); stroke-dasharray: .018 .014; }
.schematic .node { fill: var(--ink); }
.schematic .node--module { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
.schematic .node--wireless { fill: var(--surface); stroke: var(--ink); stroke-width: 2.5; }
.schematic .radio path { stroke: var(--ink-2); stroke-dasharray: 2 5; }
.schematic .bulb { fill: var(--lamp); stroke: var(--ink); stroke-width: 1.5; }
.schematic .glow { fill: var(--lamp); opacity: .3; }
.schematic .layer { transition: opacity .3s; }
.schematic[data-active="knx"] .layer:not(.layer-knx),
.schematic[data-active="dali"] .layer:not(.layer-dali),
.schematic[data-active="casambi"] .layer:not(.layer-casambi) { opacity: .12; }

.schematic__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 18px; }
.schematic__label { font-size: .95rem; color: var(--muted); }
.seg { display: inline-flex; border: 1.5px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.seg button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; font-family: var(--font-head); font-weight: 500; font-size: .9rem; color: var(--ink); background: transparent; border: 0; cursor: pointer; }
.seg button + button { border-left: 1.5px solid var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.seg button[aria-pressed="true"] .key { --key: var(--bg); }
.schematic__caption { flex-basis: 100%; min-height: 1.6em; margin: 0; font-size: 1rem; color: var(--ink-2); }

/* System keys (used in schematic buttons and table head) */
.key { --key: var(--ink); display: inline-block; width: 22px; height: 0; border-top: 3px solid var(--key); }
.key--dali { border-top-style: dashed; }
.key--casambi { border-top-style: dotted; border-top-width: 4px; }

/* Load sequence: the bus is laid, then the lights come on. One orchestrated moment. */
@media (prefers-reduced-motion: no-preference) {
	.schematic.is-animating .wire--knx { stroke-dashoffset: 1; animation: nh-draw 1.3s cubic-bezier(.6,.05,.3,1) .2s forwards; }
	.schematic.is-animating .wire--dali,
	.schematic.is-animating .radio,
	.schematic.is-animating .node--wireless { opacity: 0; animation: nh-fade .5s ease 1.25s forwards; }
	.schematic.is-animating .bulb { fill: var(--lamp-off); animation: nh-on .35s ease forwards; animation-delay: calc(1.55s + var(--d) * .16s); }
	.schematic.is-animating .lamp .glow { opacity: 0; animation: nh-glow .6s ease forwards; animation-delay: calc(1.55s + var(--d) * .16s); }
	.schematic .lamp { animation: none; }
}
@keyframes nh-draw { to { stroke-dashoffset: 0; } }
@keyframes nh-fade { to { opacity: 1; } }
@keyframes nh-on { to { fill: var(--lamp); } }
@keyframes nh-glow { to { opacity: .3; } }

/* ---------- Services index ---------- */
.services-index { background: var(--surface); border-block: 1px solid var(--line); }
.services-index__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.services-index__head { position: sticky; top: calc(var(--header-h) + 32px); }
.services-index__head .lead { margin-bottom: 28px; }
.service-rows { border-top: 1.5px solid var(--ink); }
.service-row { border-bottom: 1px solid var(--line); }
.service-row__link { display: grid; grid-template-columns: 168px minmax(0, 1fr) 32px; gap: 28px; align-items: center; padding: 22px 0; text-decoration: none; color: inherit; }
.service-row__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--lamp-off); }
.service-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.service-row__body { display: flex; flex-direction: column; gap: 6px; }
.service-row__system { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; color: var(--muted); }
.service-row__system .icon { width: 20px; height: 20px; color: var(--ink); }
.service-row__title { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.25rem, 2vw, 1.55rem); color: var(--ink); line-height: 1.2; }
.service-row__text { color: var(--ink-2); max-width: 46em; }
.service-row__arrow { color: var(--ink); justify-self: end; }
.service-row__arrow .icon { width: 26px; height: 26px; transition: transform .2s; }
.service-row__link:hover .service-row__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; }
.service-row__link:hover .service-row__arrow .icon { transform: translateX(4px); }
.service-row__link:hover img { transform: scale(1.04); }
.service-rows--full .service-row__link { grid-template-columns: 280px minmax(0, 1fr) 32px; padding: 28px 0; }
.services-overview .prose--intro { margin-bottom: 40px; }

/* ---------- Systems comparison ---------- */
.systems__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 40px; }
.systems__head .lead { margin: 0; }
.table-scroll { overflow-x: auto; }
.systems-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 1.05rem; }
.systems-table th, .systems-table td { padding: 18px 20px 18px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.systems-table thead th { font-family: var(--font-head); font-size: 1.35rem; color: var(--ink); border-bottom: 1.5px solid var(--ink); padding-bottom: 14px; }
.systems-table thead th .key { margin-right: 10px; vertical-align: middle; }
.systems-table tbody th { font-family: var(--font-head); font-weight: 500; font-size: .98rem; color: var(--muted); width: 18%; }
.systems-table td { width: 27%; color: var(--ink-2); }
.systems-table__links td { border-bottom: 0; padding-top: 24px; }
.systems-cards { display: none; }
@media (max-width: 700px) {
	.systems .table-scroll { display: none; }
	.systems-cards { display: grid; gap: 28px; }
	.system-card { border-top: 1.5px solid var(--ink); padding-top: 14px; }
	.system-card__title { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; margin-bottom: 8px; }
	.system-card dl { margin: 0 0 14px; }
	.system-card dl div { padding: 8px 0; border-bottom: 1px solid var(--line); }
	.system-card dt { font-family: var(--font-head); font-weight: 500; font-size: .9rem; color: var(--muted); }
	.system-card dd { margin: 2px 0 0; }
}

/* ---------- Process ---------- */
.process { background: var(--surface); border-block: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; margin-top: 48px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: calc((100% - 112px) / 5 - 38px); top: 17px; height: 4px; background: var(--ink); }
.step { position: relative; counter-increment: step; padding-top: 64px; }
.step::before {
	content: counter(step); position: absolute; top: 0; left: 0;
	width: 38px; height: 38px; display: grid; place-items: center;
	background: var(--surface); border: 3px solid var(--ink); border-radius: var(--radius);
	font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--ink);
}
.step:last-child::before { background: var(--lamp); border-color: var(--ink); color: #000; }
.step__title { font-size: 1.25rem; margin-bottom: .4em; }
.step p { font-size: 1.02rem; margin: 0; }

/* ---------- Regions band ---------- */
.regions-band { position: relative; color: var(--band-ink); padding-block: var(--section); overflow: hidden; background: var(--band-bg); }
.regions-band__media { position: absolute; inset: 0; }
.regions-band__media img { width: 100%; height: 100%; object-fit: cover; }
.regions-band__media::after { content: ""; position: absolute; inset: 0; background: var(--overlay); }
.regions-band .wrap { position: relative; }
.regions-band__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.regions-band .section-title { color: #fff; }
.regions-band .lead { color: rgba(255,255,255,.88); }
.regions-band .text-link { color: #fff; border-color: rgba(255,255,255,.5); }
.regions-band .text-link:hover { border-color: #fff; }
.countries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1.5px solid rgba(255,255,255,.7); }
.country { display: flex; flex-direction: column; gap: 2px; padding: 20px 16px 22px 0; border-bottom: 1px solid rgba(255,255,255,.28); }
.country__code { font-family: var(--font-head); font-weight: 600; font-size: 2.4rem; line-height: 1; color: #fff; margin-bottom: 8px; letter-spacing: -.02em; }
.country--home .country__code { color: var(--lamp); }
.country__name { font-family: var(--font-head); font-weight: 500; color: #fff; font-size: 1.1rem; }
.country__mode, .country__langs { font-size: .95rem; color: rgba(255,255,255,.75); }

/* ---------- Articles ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.post-card__link { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; }
.post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); margin-bottom: 8px; background: var(--lamp-off); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__date { font-size: .9rem; color: var(--muted); }
.post-card__title { font-size: 1.3rem; margin: 0; }
.post-card__link:hover .post-card__title { text-decoration: underline; text-decoration-thickness: 2px; }
.post-card__text { color: var(--ink-2); margin: 0; }
.pagination ul { display: flex; gap: 8px; margin-top: 48px; }
.pagination a, .pagination span { display: block; padding: 8px 14px; border: 1px solid var(--line); text-decoration: none; }
.pagination .current { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.empty { font-size: 1.15rem; color: var(--muted); }

/* ---------- Inner pages ---------- */
.page-header { padding-block: clamp(32px, 5vw, 64px) clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line); background: var(--surface); }
.page-title { font-size: clamp(2rem, 4.2vw, 3.4rem); letter-spacing: -.02em; max-width: 22ch; margin-bottom: .35em; }
.page-lead { font-size: clamp(1.15rem, 1.6vw, 1.35rem); max-width: 40em; margin: 0; }
.page-header--404 { padding-block: clamp(64px, 10vw, 140px); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin-bottom: 20px; font-size: .95rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

.prose { max-width: 42em; }
.prose--narrow { max-width: 40em; }
.prose h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); margin-top: 1.6em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }
.prose ul { margin: 0 0 1.2em; }
.prose ul li { position: relative; padding-left: 26px; margin-bottom: .55em; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 12px; height: 3px; background: var(--ink); }
.prose--regions h2 { padding-top: 1.2em; border-top: 1px solid var(--line); }
.prose--regions h2:first-child { border-top: 0; padding-top: 0; }

/* Service page */
.service-hero { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: clamp(28px, 4vw, 56px); }
.service-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.service-hero__system { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 500; color: var(--ink); margin-bottom: 14px; padding: 6px 12px 6px 8px; border: 1.5px solid var(--ink); border-radius: var(--radius); font-size: .95rem; }
.service-hero__system .icon { width: 22px; height: 22px; }
.service-hero .page-lead { margin-bottom: 28px; }
.service-hero__media { aspect-ratio: 16 / 11; overflow: hidden; border-radius: var(--radius); background: var(--lamp-off); }
.service-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.service-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 96px); padding-block: clamp(48px, 7vw, 96px); align-items: start; }
.service-aside { display: flex; flex-direction: column; gap: 24px; position: sticky; top: calc(var(--header-h) + 24px); }
.included { padding-top: 18px; border-top: 4px solid var(--ink); }
.included__title { font-size: 1.15rem; margin-bottom: 14px; }
.checklist li { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
.checklist .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--ink); }
.aside-cta { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--lamp); }
.aside-cta__title { font-size: 1.2rem; }
.aside-cta p { font-size: 1.02rem; }
.aside-cta__phone { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-family: var(--font-head); font-weight: 500; text-decoration: none; }
.other-services { padding-top: 0; }
.other-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 1.5px solid var(--ink); }
.other-list a { height: 100%; display: flex; align-items: center; gap: 12px; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); font-family: var(--font-head); font-weight: 500; text-decoration: none; color: var(--ink); }
.other-list a:hover span { text-decoration: underline; }
.other-list .icon { width: 24px; height: 24px; }

/* About */
.about-media { max-height: 460px; overflow: hidden; }
.about-media img { width: 100%; height: 460px; object-fit: cover; }
.about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-aside { padding-top: 18px; border-top: 4px solid var(--ink); }

/* Company details */
.company { margin: 0; }
.company div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.company dt { color: var(--muted); font-size: .98rem; }
.company dd { margin: 0; color: var(--ink); }
.about-aside .company div { grid-template-columns: 1fr; gap: 0; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-details .text-link { margin-top: 20px; }
.contact-form-wrap { background: var(--surface); padding: clamp(20px, 3vw, 36px); border: 1px solid var(--line); }

/* Article */
.article-meta { color: var(--muted); }
.article-media { margin: 0 0 40px; max-width: 900px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); }
.article-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Contact band + form ---------- */
.contact-band { background: var(--surface); border-top: 1px solid var(--line); padding-block: var(--section); }
.contact-band__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-list { margin-top: 28px; border-top: 1.5px solid var(--ink); }
.contact-list li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
.contact-list a { text-decoration: none; font-family: var(--font-head); font-weight: 500; }
.contact-list .icon { color: var(--ink); }

.nh-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--ink); }
.field .req { font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: .9rem; }
.nh-form input[type="text"], .nh-form input[type="email"], .nh-form input[type="tel"], .nh-form select, .nh-form textarea {
	width: 100%; min-height: 50px; padding: 12px 14px;
	font: inherit; font-size: 1.05rem; color: var(--ink);
	background: var(--bg); border: 1.5px solid var(--line-strong); border-radius: var(--radius);
}
.nh-form textarea { min-height: 130px; resize: vertical; }
.nh-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.nh-form input:focus, .nh-form select:focus, .nh-form textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent); }
.nh-form input:user-invalid { border-color: #b3261e; }
.field--check { flex-direction: row; align-items: flex-start; gap: 12px; }
.field--check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.field--check label { font-family: var(--font-body); font-weight: 400; font-size: 1rem; color: var(--ink-2); }
.nh-form .btn { align-self: flex-start; }
.form-msg { padding: 14px 16px; border-left: 4px solid; margin: 0; }
.form-msg--error { border-color: #b3261e; background: rgba(179, 38, 30, .08); color: var(--ink); }
.form-msg--ok { border-color: var(--lamp); background: rgba(244, 183, 58, .14); color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--band-bg); color: var(--band-muted); padding-top: clamp(56px, 7vw, 96px); font-size: 1.02rem; }
.site-footer a { color: var(--band-ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: 1.1fr 1.3fr 1.2fr 1fr; gap: 40px; padding-bottom: 56px; }
.footer-logo { display: block; color: var(--band-ink); width: 190px; }
.footer-logo .logo-svg { width: 100%; height: auto; }
.footer-title { font-size: 1rem; color: var(--band-ink); margin-bottom: 16px; font-weight: 500; }
.footer-links li { padding: 4px 0; }
.footer-address { line-height: 1.75; }
.footer-address strong { color: var(--band-ink); font-weight: 600; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.3); border-radius: var(--radius); }
.lang-switch--footer { margin-top: 20px; }
.lang-switch--footer a { color: var(--band-muted); }
.lang-switch--footer a:hover, .lang-switch--footer a[aria-current] { color: var(--band-ink); }
.lang-switch--footer a[aria-current] { box-shadow: inset 0 0 0 1.5px var(--band-ink); }
.site-footer__bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-block: 22px 28px; font-size: .95rem; }
.site-footer__bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: rgba(255,255,255,.18); }
.site-footer__bottom p { margin: 0; }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.hero__grid { grid-template-columns: 1fr; }
	.hero__visual { max-width: 640px; }
	.services-index__grid { grid-template-columns: 1fr; }
	.services-index__head { position: static; }
	.steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
	.steps::before { display: none; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.regions-band__grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
	.service-hero__grid, .service-body, .about-grid, .contact-grid, .contact-band__grid, .systems__head { grid-template-columns: 1fr; }
	.service-aside { position: static; }
	.service-hero__media { order: -1; }
	.post-grid { grid-template-columns: 1fr 1fr; }
	.service-row__link, .service-rows--full .service-row__link { grid-template-columns: 112px minmax(0, 1fr); gap: 18px; }
	.service-row__arrow { display: none; }
	.countries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	body { font-size: 1.0625rem; }
	.field-row { grid-template-columns: 1fr; }
	.post-grid { grid-template-columns: 1fr; }
	.steps { grid-template-columns: 1fr; gap: 0; }
	.step { padding: 0 0 28px 60px; }
	.step::after { content: ""; position: absolute; left: 17px; top: 38px; bottom: 0; width: 4px; background: var(--ink); }
	.step:last-child::after { display: none; }
	.service-row__link, .service-rows--full .service-row__link { grid-template-columns: 1fr; }
	.service-row__media { aspect-ratio: 16 / 9; }
	.site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
	.company div { grid-template-columns: 1fr; gap: 0; }
	.about-media img { height: 260px; }
	.hero__actions .btn { flex: 1 1 100%; }
	.schematic .rooms text { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: 0s !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
	.site-header, .contact-band, .site-footer, .hero__visual { display: none; }
}
