:root {
  --white: #ffffff;
  --ink: #11161d;
  --text: #26313d;
  --muted: #687584;
  --line: #dfe5eb;
  --soft: #f3f6f8;
  --blue: #114f82;
  --blue-dark: #0a2740;
  --electric: #2f8edb;
  --red: #d71920;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 0 max(28px, calc((100vw - var(--max)) / 2));
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 38px rgba(17, 22, 29, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 158px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  font-weight: 900;
  letter-spacing: -2px;
  color: currentColor;
  border: 2px solid currentColor;
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 25px;
  background: currentColor;
  transform: skew(-18deg);
  clip-path: polygon(45% 0, 100% 0, 62% 42%, 100% 42%, 38% 100%, 53% 56%, 12% 56%);
}

.brand-word {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 5px;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  font-size: 13px;
  font-weight: 650;
}

.main-nav a,
.header-cta {
  transition: color 160ms ease;
}

.main-nav a:hover,
.header-cta:hover {
  color: var(--electric);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.language-switch {
  --switch-x: 0%;
  width: 82px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  position: relative;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.language-switch::before {
  content: "";
  position: absolute;
  inset: 4px auto 4px 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  transform: translateX(var(--switch-x));
  transition: transform 180ms ease, background 180ms ease;
}

.language-switch.is-ru {
  --switch-x: 100%;
}

.site-header.is-scrolled .language-switch {
  border-color: rgba(10, 39, 64, 0.18);
  background: rgba(10, 39, 64, 0.06);
}

.site-header.is-scrolled .language-switch::before {
  background: var(--blue-dark);
}

.lang-btn {
  position: relative;
  z-index: 1;
  flex: 1;
  height: 100%;
  border: 0;
  background: transparent;
  color: currentColor;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.lang-btn.is-active {
  color: var(--blue-dark);
}

.site-header.is-scrolled .lang-btn.is-active {
  color: var(--white);
}

.header-cta {
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.hero {
  min-height: 94vh;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: end;
  gap: 42px;
  padding: 168px max(28px, calc((100vw - var(--max)) / 2)) 82px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 18, 30, 0.92), rgba(8, 18, 30, 0.66) 48%, rgba(8, 18, 30, 0.2)),
    linear-gradient(0deg, rgba(8, 18, 30, 0.38), rgba(8, 18, 30, 0.14)),
    url("assets/voltmax-hero.jpg") center / cover no-repeat;
  transform: translateY(var(--hero-parallax, 0)) scale(1.06);
  will-change: transform;
}

.hero-content,
.hero-panel {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  margin: 0 0 20px;
  color: var(--electric);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  color: var(--white);
  font-size: clamp(48px, 7vw, 86px);
  line-height: 0.95;
  letter-spacing: 0;
  font-weight: 780;
  text-wrap: balance;
}

.hero-subtitle {
  max-width: 650px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(18px, 2vw, 24px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: var(--white);
  background: var(--red);
}

.btn-primary:hover {
  background: #b9151b;
}

.btn-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
}

.btn-secondary:hover {
  border-color: var(--white);
}

.hero-panel {
  align-self: end;
  padding: 28px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.09);
  border-left: 3px solid var(--electric);
  backdrop-filter: blur(16px);
}

.hero-panel span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.hero-panel strong {
  display: block;
  margin-top: 14px;
  font-size: 42px;
  line-height: 1;
}

.hero-panel p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

section {
  padding: 96px max(28px, calc((100vw - var(--max)) / 2));
}

.section-grid {
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  gap: 84px;
}

h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.04;
  letter-spacing: 0;
  font-weight: 760;
  text-wrap: balance;
}

h3 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.22;
}

.intro-copy {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
}

.intro-copy p:first-child {
  margin-top: 42px;
}

.highlight-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.highlight-row span {
  padding: 11px 14px;
  color: var(--blue-dark);
  background: var(--soft);
  border-left: 2px solid var(--electric);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-support {
  max-width: 620px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  font-weight: 800;
}

.visual-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--line);
}

.visual-tile {
  min-height: 260px;
  position: relative;
  display: flex;
  align-items: end;
  padding: 26px;
  overflow: hidden;
  color: var(--white);
  background: var(--blue-dark);
}

.visual-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--tile-bg);
  background-size: cover;
  background-position: center;
  transition: transform 300ms ease;
}

.visual-tile:hover::before {
  transform: scale(1.04);
}

.visual-tile-a::before {
  --tile-bg:
    linear-gradient(180deg, rgba(8, 18, 30, 0.06), rgba(8, 18, 30, 0.78)),
    url("assets/visual-lines.jpg");
}

.visual-tile-b::before {
  --tile-bg:
    linear-gradient(180deg, rgba(8, 18, 30, 0.1), rgba(8, 18, 30, 0.82)),
    url("assets/visual-substation.jpg");
}

.visual-tile-c::before {
  --tile-bg:
    linear-gradient(180deg, rgba(8, 18, 30, 0.08), rgba(8, 18, 30, 0.8)),
    url("assets/visual-cables.jpg");
}

.visual-tile span {
  position: relative;
  z-index: 1;
  font-size: 18px;
  font-weight: 850;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--line);
}

.metric {
  padding: 42px;
  background: var(--soft);
}

.metric strong {
  display: block;
  color: var(--blue);
  font-size: 44px;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.portfolio,
.process {
  background: var(--white);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-heading.compact {
  max-width: 860px;
  margin-bottom: 38px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.product-card {
  min-height: 210px;
  padding: 34px 30px 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.product-card-wide {
  grid-column: span 3;
  min-height: 150px;
}

.experience-item span {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.product-card p,
.experience-item p {
  margin: 18px 0 0;
  color: var(--muted);
}

.partners {
  background: var(--soft);
}

.logo-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.logo-row span,
.client-grid span {
  min-height: 102px;
  display: grid;
  place-items: center;
  padding: 20px;
  color: var(--ink);
  background: var(--white);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  font-weight: 800;
  text-align: center;
}

.section-dark {
  color: var(--white);
  background: var(--blue-dark);
}

.section-dark h2 {
  color: var(--white);
}

.capabilities {
  background:
    linear-gradient(120deg, rgba(10, 39, 64, 0.98), rgba(17, 79, 130, 0.86)),
    var(--blue-dark);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.capability-item {
  min-height: 240px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.06);
  position: relative;
}

.capability-item::before {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  margin-bottom: 34px;
  background: var(--electric);
  box-shadow: 18px 0 0 rgba(47, 142, 219, 0.24);
}

.capability-item h3 {
  color: var(--white);
}

.capability-item p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.experience-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.experience-item {
  padding: 36px;
  background: var(--soft);
  border-top: 4px solid var(--blue);
}

.partner-reasons {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 58px;
  background: var(--soft);
}

.reason-list {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.reason-item {
  min-height: 78px;
  display: flex;
  align-items: center;
  padding: 22px 24px;
  color: var(--ink);
  background: var(--white);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  font-weight: 800;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.process-list li {
  min-height: 200px;
  padding: 32px 26px 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.process-list li::before {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  margin-bottom: 30px;
  background: var(--red);
}

.process-list p {
  margin: 0;
  color: var(--ink);
  font-weight: 750;
}

.terms {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.terms span {
  padding: 12px 16px;
  color: var(--blue-dark);
  background: var(--soft);
  font-size: 13px;
  font-weight: 800;
}

.about-page {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  background: var(--soft);
}

.director {
  align-self: end;
  padding: 34px;
  background: var(--white);
  border-top: 4px solid var(--red);
}

.director span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.director strong {
  display: block;
  margin-top: 12px;
  color: var(--ink);
  font-size: 28px;
}

.director p {
  margin: 18px 0 0;
  color: var(--muted);
}

.cta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 46px;
  align-items: start;
}

.cta p {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
}

.contact-card {
  padding: 0;
  color: var(--white);
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-card .btn {
  width: auto;
  margin-top: 34px;
}

dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.16);
}

dt {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

dd {
  margin: 0;
  color: var(--white);
  font-weight: 650;
}

dl > div {
  min-height: 132px;
  padding: 26px 24px;
  background: rgba(255, 255, 255, 0.055);
}

dl a {
  color: var(--white);
}

[data-i18n="contact.location"] {
  max-width: 360px;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 520;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.88);
}

html[lang="ru"] .hero h1 {
  max-width: 980px;
  font-size: clamp(34px, 5.1vw, 66px);
  line-height: 1.02;
  font-weight: 760;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

html[lang="ru"] h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  font-weight: 740;
}

html[lang="ru"] .hero-subtitle,
html[lang="ru"] .hero-support,
html[lang="ru"] .intro-copy,
html[lang="ru"] .contact-card {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 34px max(28px, calc((100vw - var(--max)) / 2));
  color: var(--white);
  background: #071827;
}

.site-footer p,
.site-footer span:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 1px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1020px) {
  .site-header {
    grid-template-columns: 1fr auto;
    height: auto;
    min-height: 72px;
    padding: 14px 22px;
  }

  .main-nav {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .language-switch {
    justify-self: end;
  }

  .hero,
  .section-grid,
  .partner-reasons,
  .cta {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 860px;
    padding-top: 130px;
  }

  .hero-panel {
    max-width: 420px;
  }

  .visual-strip,
  .product-grid,
  .capability-grid,
  .experience-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .metrics,
  .logo-row,
  .process-list,
  dl {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .site-header {
    gap: 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .brand-word {
    font-size: 11px;
    letter-spacing: 3px;
  }

  .language-switch {
    transform: scale(0.92);
    transform-origin: right center;
  }

  .hero {
    min-height: 760px;
    padding: 120px 20px 46px;
  }

  .hero h1 {
    font-size: 44px;
  }

  html[lang="ru"] .hero h1 {
    max-width: 540px;
    font-size: 31px;
    line-height: 1.12;
  }

  section {
    padding: 68px 20px;
  }

  h2 {
    font-size: 34px;
  }

  .metrics,
  .visual-strip,
  .product-grid,
  .capability-grid,
  .experience-list,
  .logo-row,
  .reason-list,
  .process-list,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .metric,
  .product-card,
  .experience-item,
  .reason-item,
  .contact-card {
    padding: 26px;
  }

  .contact-card {
    padding: 0;
  }

  .product-card-wide {
    grid-column: auto;
  }

  .site-footer {
    align-items: start;
  }
}
