:root {
	--ink: #17202a;
	--muted: #667085;
	--line: #e4e7ec;
	--brand: #1f5f8b;
	--accent: #e85d2a;
	--dark: #111827;
	--paper: #f8fafc;
	--white: #ffffff;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	color: var(--ink);
	font-family: Inter, Arial, sans-serif;
	background: var(--white);
}

a {
	color: inherit;
	text-decoration: none;
}

img {
	display: block;
	max-width: 100%;
}

.wrap {
	width: min(1180px, calc(100% - 40px));
	margin: 0 auto;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
	backdrop-filter: blur(12px);
}

.topbar {
	color: #d7e5ef;
	font-size: 13px;
	background: #16384f;
}

.topbar-inner {
	display: flex;
	min-height: 38px;
	align-items: center;
	gap: 22px;
}

.languages,
.nav-languages {
	display: flex;
	gap: 6px;
}

.languages {
	margin-left: auto;
}

.languages a,
.nav-languages a {
	display: grid;
	min-width: 34px;
	height: 24px;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, 0.24);
	font-weight: 700;
}

.languages a.active,
.nav-languages a.active {
	color: #112333;
	background: var(--white);
}

.nav {
	display: flex;
	min-height: 78px;
	align-items: center;
	justify-content: space-between;
	gap: 26px;
}

.brand img {
	width: 172px;
	height: 58px;
	object-fit: contain;
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 26px;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: uppercase;
}

.nav-links a {
	position: relative;
	padding: 28px 0;
}

.nav-links a::after {
	position: absolute;
	right: 0;
	bottom: 18px;
	left: 0;
	height: 3px;
	background: var(--ink);
	content: "";
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 180ms ease;
}

.nav-links a:hover::after {
	transform: scaleX(1);
}

	.nav-links .nav-highlight {
		color: var(--ink);
	}

	.nav-languages a {
	border-color: #d0d5dd;
	color: var(--ink);
	background: #f8fafc;
	padding: 0;
}

.nav-languages a.active {
	color: var(--white);
	background: #16384f;
	border-color: #16384f;
}

.nav-languages a::after {
	display: none;
}

.hero {
	position: relative;
	display: grid;
	min-height: clamp(420px, 52vh, 560px);
	overflow: hidden;
	align-items: center;
	background:
		linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(31, 95, 139, 0.92)),
		#111827;
}

.hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(9, 18, 31, 0.86), rgba(9, 18, 31, 0.45) 48%, rgba(9, 18, 31, 0.16));
}

.hero-content {
	position: relative;
	z-index: 2;
	max-width: 860px;
	margin-top: 0;
	color: var(--white);
	text-align: center;
}

.hero-content p,
.section-kicker {
	margin: 0 0 14px;
	color: var(--ink);
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
}

.hero-content h1 {
	max-width: 820px;
	margin: 0;
	font-size: clamp(42px, 5.2vw, 72px);
	line-height: 1.02;
	letter-spacing: 0;
}

.hero-content span {
	display: block;
	max-width: 760px;
	margin-top: 24px;
	color: rgba(255, 255, 255, 0.84);
	font-size: clamp(16px, 1.6vw, 20px);
	line-height: 1.75;
	margin-right: auto;
	margin-left: auto;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 34px;
}

.button {
	display: inline-flex;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	padding: 0 22px;
	border: 1px solid rgba(255, 255, 255, 0.48);
	font-weight: 800;
}

.button.primary {
	border-color: var(--ink);
	background: var(--ink);
}

.button.secondary {
	color: var(--white);
	background: rgba(255, 255, 255, 0.08);
}

.dots {
	position: absolute;
	z-index: 3;
	left: 50%;
	bottom: 28px;
	display: flex;
	gap: 10px;
	transform: translateX(-50%);
}

.dots button {
	width: 36px;
	height: 4px;
	padding: 0;
	border: 0;
	background: rgba(255, 255, 255, 0.45);
	cursor: pointer;
}

.dots button.active {
	background: var(--ink);
}

.intro {
	padding: 78px 0;
	text-align: center;
}

.intro h2,
.section h2 {
	margin: 0;
	font-size: clamp(30px, 3.6vw, 48px);
	line-height: 1.14;
	letter-spacing: 0;
}

.intro p,
.section p {
	color: var(--muted);
	font-size: 17px;
	line-height: 1.8;
}

.intro p {
	max-width: 730px;
	margin: 18px auto 0;
}

.section {
	padding: 88px 0;
}

.about {
	background: var(--paper);
}

.about-subtitle {
    margin: 10px 0 16px;
    font-size: 17px;
    font-weight: 600;
    color: var(--brand);
    line-height: 1.4;
}

.split {
	display: grid;
	align-items: center;
	grid-template-columns: 0.9fr 1.1fr;
	gap: 58px;
}

.split.reverse {
	grid-template-columns: 1.3fr 0.7fr;
}

.feature-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.feature-grid article {
	min-height: 230px;
	padding: 30px;
	border-top: 4px solid var(--ink);
	background: var(--white);
	box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.feature-grid h3 {
	margin: 0 0 12px;
	font-size: 22px;
}

.feature-grid p {
	margin: 0;
}

.machinery {
	background: #ffffff;
}

.image-pair {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
	align-items: center;
}

.image-pair img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    box-shadow: none;
    transform: scale(1.1);
    transform-origin: center center;
}

.image-pair img + img {
    height: auto;
}

.gallery {
	background: var(--paper);
}

.cadcam {
	background: var(--white);
}

.section-head {
	max-width: 820px;
	text-align: center;
}

.gallery-grid {
	display: grid;
	margin-top: 34px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.gallery-grid figure {
	position: relative;
	min-height: 260px;
	margin: 0;
	overflow: hidden;
	background: #d8dee6;
}

.gallery-grid img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 260ms ease;
}

.gallery-grid figure:hover img {
	transform: scale(1.04);
}

.footer {
    color: rgba(255, 255, 255, 0.78);
    background: linear-gradient(135deg, #111827, #1f5f8b);
}

.footer-grid {
	display: grid;
	padding: 68px 0;
	grid-template-columns: 1.4fr 1fr 0.8fr;
	gap: 48px;
}

.footer h2 {
	margin: 0 0 18px;
	color: var(--white);
	font-size: 21px;
}

.footer p {
	margin: 0 0 12px;
	line-height: 1.7;
}

.footer a {
	display: block;
	margin-bottom: 10px;
}

.footer-logo {
    width: 150px;
    margin-bottom: 20px;
}

.copyright {
	padding: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	text-align: center;
	font-size: 13px;
}

@media (max-width: 860px) {
	.topbar-inner,
	.nav,
	.nav-links {
		flex-wrap: wrap;
	}

	.nav {
		padding: 12px 0 18px;
	}

	.nav-links {
		width: 100%;
		gap: 18px;
	}

	.nav-links a {
		padding: 4px 0;
	}

	.hero {
		min-height: 520px;
	}

	.hero-content {
		margin-top: 0;
	}

	.split,
	.split.reverse,
	.footer-grid {
		grid-template-columns: 1fr;
	}

	.feature-grid,
	.gallery-grid,
	.image-pair {
		grid-template-columns: 1fr;
	}

	.image-pair img,
	.image-pair img + img {
		height: auto;
	}
}

/* ── Lightbox ── */
.lightbox {
	position: fixed;
	inset: 0;
	z-index: 999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.88);
	opacity: 0;
	pointer-events: none;
	transition: opacity 220ms ease;
}

.lightbox.is-open {
	opacity: 1;
	pointer-events: all;
}

.lightbox img {
	max-width: min(92vw, 1200px);
	max-height: 90vh;
	object-fit: contain;
	box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
	transform: scale(0.94);
	transition: transform 240ms ease;
}

.lightbox.is-open img {
	transform: scale(1);
}

.lightbox-close {
	position: absolute;
	top: 20px;
	right: 24px;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	border-radius: 2px;
	transition: background 160ms;
}

.lightbox-close:hover {
	background: rgba(255, 255, 255, 0.24);
}

.lightbox-prev,
.lightbox-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 26px;
	cursor: pointer;
	border-radius: 2px;
	transition: background 160ms;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-prev:hover,
.lightbox-next:hover {
	background: rgba(255, 255, 255, 0.28);
}

.gallery-grid figure {
	cursor: pointer;
}

@media (max-width: 520px) {
	.wrap {
		width: min(100% - 28px, 1180px);
	}

	.topbar-inner {
		gap: 10px;
		padding: 8px 0;
	}

	.languages {
		margin-left: 0;
	}

	.brand img {
		width: 136px;
	}

	.nav-links {
		font-size: 12px;
	}

	.hero-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.button {
		width: 100%;
	}

	.section,
	.intro {
		padding: 58px 0;
	}
}
