* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --red: #d60000;
  --dark: #121212;
  --gray: #666;
  --light: #f5f5f5;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #202020;
  background: var(--white);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto 0;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  backdrop-filter: blur(8px);
}

.header-inner {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  height: 52px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.main-nav a {
  text-decoration: none;
  color: #111;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--red);
}

.language-switch {
  display: flex;
  gap: 8px;
}

.language-switch button,
.mobile-toggle {
  border: 0;
  background: #111;
  color: white;
  padding: 8px 11px;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
}

.language-switch button:hover,
.mobile-toggle:hover {
  background: var(--red);
}

.mobile-toggle {
  display: none;
}

.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 130px 40px 70px;
  background-image: url("images/hero.jpg");
  background-size: cover;
  background-position: center;
  color: white;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.52) 42%, rgba(0,0,0,0.18) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(780px, 100%);
  margin-left: max(20px, calc((100vw - 1180px) / 2));
}

.hero h1 {
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.04;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}

.hero p {
  font-size: clamp(18px, 2.2vw, 25px);
  max-width: 720px;
  margin-bottom: 34px;
  color: rgba(255,255,255,0.92);
}

.button {
  display: inline-flex;
  background: var(--red);
  color: white;
  text-decoration: none;
  padding: 15px 28px;
  border-radius: 4px;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.05em;
  font-weight: 800;
  transition: background 0.2s ease, transform 0.2s ease;
}

.button:hover {
  background: #a90000;
  transform: translateY(-2px);
}

.section {
  padding: 96px 0;
}

.section-light {
  background: var(--light);
}

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

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

.section-heading {
  max-width: 900px;
  margin-bottom: 42px;
}

.section-heading.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading span,
.eyebrow {
  display: inline-block;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 14px;
}

.section-heading h2,
.contact-box h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.16;
}

.intro-text {
  max-width: 1050px;
  display: grid;
  gap: 18px;
  font-size: 20px;
  color: #3f3f3f;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.service-card {
  padding: 30px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.service-card p {
  color: var(--gray);
}

.solution-grid,
.reference-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.image-card,
.reference-card {
  background: var(--white);
  color: #202020;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0,0,0,0.12);
}

.image-card img,
.reference-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.image-card div {
  padding: 24px;
}

.image-card h3,
.reference-card h3 {
  font-size: 21px;
  margin-bottom: 10px;
}

.image-card p,
.reference-card p {
  color: var(--gray);
}

.reference-card {
  background: #fff;
}

.reference-card h3 {
  padding: 22px 22px 4px;
}

.reference-card p {
  padding: 0 22px 22px;
  color: var(--red);
  font-weight: 700;
}

.contact-section {
  background:
    linear-gradient(rgba(0,0,0,0.80), rgba(0,0,0,0.80)),
    url("images/ref-large-batching-plant-romania.jpg") center/cover no-repeat;
  color: white;
}

.contact-box {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}

.contact-box p {
  font-size: 18px;
  color: rgba(255,255,255,0.88);
  margin-top: 18px;
}

.contact-details {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 30px;
  border-radius: 14px;
}

.contact-details a {
  color: white;
  font-weight: 700;
}

.site-footer {
  background: #050505;
  color: #aaa;
  padding: 24px 0;
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 980px) {
  .header-inner {
    height: auto;
    min-height: 86px;
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .mobile-toggle {
    display: inline-block;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0;
  }

  .main-nav.open {
    display: flex;
  }

  .language-switch {
    margin-left: auto;
  }

  .service-grid,
  .solution-grid,
  .reference-grid,
  .contact-box {
    grid-template-columns: 1fr 1fr;
  }

  .hero-content {
    margin-left: 0;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 26px, 1180px);
  }

  .hero {
    padding-left: 20px;
    padding-right: 20px;
  }

  .service-grid,
  .solution-grid,
  .reference-grid,
  .contact-box {
    grid-template-columns: 1fr;
  }

  .header-inner {
    width: min(100% - 24px, 1280px);
  }

  .brand img {
    height: 44px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
