:root {
  --ink: #1a140f;
  --paper: #f3ecdf;
  --muted: #6e6258;
  --line: rgba(26, 20, 15, 0.14);
  --max: 1120px;
  --header: 72px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei", "Noto Sans", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

img, svg { display: block; max-width: 100%; }

button, input { font: inherit; }

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  z-index: 20;
}

.skip:focus { top: 12px; }

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  min-height: var(--header);
  padding: 14px 28px;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
}

.brand {
  text-decoration: none;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.brand small {
  display: block;
  font-weight: 450;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  opacity: 0.62;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-left: auto;
}

.nav a {
  text-decoration: none;
  font-size: 15px;
}

.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

.langs {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.langs button {
  border: 0;
  background: transparent;
  color: inherit;
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
}

.langs button[aria-pressed="true"] {
  background: currentColor;
}

.langs button[aria-pressed="true"] span {
  color: var(--paper);
  mix-blend-mode: normal;
}

.motors-page .langs button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.machinery-page .langs button[aria-pressed="true"] { background: #102028; color: #f4f7f8; }
.gate .langs button[aria-pressed="true"] { background: #f3ecdf; color: #1a140f; }

.also {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.04em;
  opacity: 0.72;
}

.kicker {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.15; font-weight: 640; }

h1 { font-size: clamp(36px, 5vw, 64px); margin: 0 0 16px; letter-spacing: -0.03em; text-wrap: balance; }
h2 { font-size: clamp(28px, 4vw, 44px); margin: 0 0 12px; letter-spacing: -0.03em; }
h3 { font-size: 22px; margin: 0 0 8px; }

.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }

.section { padding: 76px 0; }

.lead { font-size: 18px; max-width: 42rem; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  padding: 28px;
  font-size: 13px;
}

.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .site-header { padding: 12px 16px; }
  .nav { order: 3; width: 100%; margin-left: 0; }
  .wrap { width: min(var(--max), calc(100% - 32px)); }
  .section { padding: 56px 0; }
  .site-footer { padding: 22px 16px 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
