:root {
  --red: #C8102E;
  --red-dark: #9F0D25;
  --ink: #1F2937;
  --night: #071523;
  --muted: #6B7280;
  --line: #e5e7eb;
  --soft: #f8f9fa;
  --white: #ffffff;
  --radius: 8px;
  --shadow: 0 18px 48px rgba(15, 23, 42, .12);
  font-family: Inter, Avenir, "Source Sans Pro", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  background: var(--red);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius);
}

.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 16px;
  min-height: 94px;
  padding: 8px clamp(16px, 3vw, 42px);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(229, 231, 235, .95);
  backdrop-filter: blur(14px);
}

.brand {
  display: grid;
  gap: 0;
  align-items: center;
  width: 296px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 64px;
}

.brand-shield {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.brand-wordmark {
  width: 176px;
  height: 50px;
  object-fit: contain;
  object-position: left center;
}

.brand > span:not(.brand-row) {
  display: block;
  margin-left: 72px;
  color: #111827;
  font-size: 10px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(14px, 1.6vw, 24px);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
  padding: 34px 0 30px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .18s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1); }

.header-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.header-contact span {
  width: 1px;
  height: 18px;
  background: #cbd5e1;
}

.client-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 13px;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.client-button,
.button.primary {
  background: var(--red);
  color: #fff;
}

.client-button:hover,
.button:hover { transform: translateY(-1px); }

.button.primary:hover { background: var(--red-dark); }
.button.secondary { color: #fff; border-color: rgba(255,255,255,.68); }
.button.light { background: #fff; color: var(--red); }
.button.outline-light { color: #fff; border-color: rgba(255,255,255,.72); }

.menu-toggle { display: none; }

.hero {
  position: relative;
  min-height: min(730px, calc(100vh - 92px));
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #050b12;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4,10,17,.98) 0%, rgba(4,10,17,.9) 34%, rgba(4,10,17,.42) 62%, rgba(4,10,17,.02) 100%),
    linear-gradient(0deg, rgba(4,10,17,.62), rgba(4,10,17,0) 46%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  filter: brightness(1.16) contrast(1.04) saturate(1.04);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(22px, 5vw, 74px);
  padding: 86px 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: #ff3b3b;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: .98;
  letter-spacing: 0;
}

.hero-line,
.section-heading span {
  display: block;
  width: 64px;
  height: 4px;
  margin: 28px 0;
  background: var(--red);
}

.hero-text {
  width: min(560px, 100%);
  margin: 0 0 28px;
  color: #f8fafc;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.65;
}

.service-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 0;
  padding: 0;
  margin: 0 0 32px;
  list-style: none;
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.service-strip li {
  padding-right: 22px;
  margin-right: 22px;
  border-right: 1px solid rgba(255,255,255,.24);
}

.service-strip li:last-child { border-right: 0; }

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.section {
  padding: clamp(54px, 7vw, 92px) clamp(18px, 4vw, 54px);
}

.section-heading {
  width: min(900px, 100%);
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading span {
  margin: 0 auto 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 42px);
  text-transform: uppercase;
}

.section-heading h2 em {
  color: var(--red);
  font-style: normal;
}

.section-heading p {
  margin: 14px auto 0;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.65;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.expertise-card {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  padding: 0 22px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
  transition: transform .18s ease, box-shadow .18s ease;
}

.expertise-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.expertise-media {
  position: relative;
  display: block;
  width: calc(100% + 44px);
  height: auto;
  aspect-ratio: 16 / 10;
  margin: 0 -22px 46px;
  overflow: hidden;
  background: #f3f4f6;
}

.expertise-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  transition: transform .22s ease, opacity .22s ease;
}

.expertise-card:hover .expertise-media img {
  transform: scale(1.04);
  opacity: .96;
}

.expertise-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  color: #fff;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 14px 28px rgba(200, 16, 46, .2);
}

.expertise-media .expertise-icon {
  position: absolute;
  left: 50%;
  bottom: -38px;
  transform: translateX(-50%);
  border: 6px solid #fff;
}

.expertise-icon svg {
  width: 34px;
  height: 34px;
}

.expertise-card h3 {
  margin: 0 0 14px;
  font-size: 18px;
  text-transform: uppercase;
}

.expertise-card p {
  margin: 0 0 18px;
  color: #344054;
  line-height: 1.55;
}

.expertise-card a {
  margin-top: auto;
  color: var(--red);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.metrics-band {
  padding: 44px clamp(18px, 4vw, 54px);
  color: #fff;
  background:
    radial-gradient(circle at 20% 120%, rgba(200,16,46,.22), transparent 28%),
    linear-gradient(135deg, #06111f, #02070d);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.metric {
  padding: 14px 24px;
  border-left: 1px solid rgba(255,255,255,.16);
}

.metric strong {
  display: block;
  margin-bottom: 5px;
  font-size: clamp(28px, 3vw, 42px);
}

.metric span {
  display: block;
  margin-bottom: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.metric p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.55;
}

.trust-section {
  background: #fff;
}

.client-groups {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  max-width: 1440px;
  margin: 0 auto;
}

.client-group {
  display: grid;
  gap: 18px;
}

.client-group-heading {
  display: grid;
  grid-template-columns: auto minmax(80px, 1fr);
  align-items: center;
  gap: 14px;
  color: var(--ink);
}

.client-group-heading::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.client-group-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-size: clamp(17px, 1.5vw, 22px);
  font-weight: 950;
  text-transform: uppercase;
}

.client-group-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid rgba(200, 16, 46, .32);
  border-radius: 999px;
  color: var(--red);
  background: #fff;
}

.client-group-icon svg {
  width: 22px;
  height: 22px;
}

.client-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.client-logo-grid-industrie-energie {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.client-logo-card {
  min-height: 156px;
  display: grid;
  grid-template-rows: 92px auto;
  align-items: center;
  justify-items: center;
  gap: 12px;
  padding: 22px 18px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .045);
}

.client-logo-card.reveal,
.client-group-note.reveal {
  opacity: 1;
  transform: none;
}

.client-logo-card img {
  width: auto;
  max-width: min(82%, 178px);
  height: auto;
  max-height: 78px;
  object-fit: contain;
  object-position: center;
  display: block;
}

.client-logo-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 178px;
  min-height: 78px;
  color: #263548;
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 950;
  line-height: 1.08;
}

.client-logo-card strong {
  color: var(--ink);
  font-size: 15px;
}

.client-group-note {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 2px;
  padding: 22px clamp(18px, 3vw, 32px);
  background: #f8f9fa;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  line-height: 1.6;
}

.client-group-note .client-group-icon {
  background: #fff;
}

.sector-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.sector-grid span {
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #243142;
  font-weight: 800;
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: clamp(38px, 5vw, 62px) clamp(18px, 4vw, 54px);
  color: #fff;
  background: linear-gradient(135deg, var(--red-dark), var(--red));
}

.cta-band h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 48px);
}

.cta-band p { margin-bottom: 0; line-height: 1.6; }

.page-hero {
  padding: clamp(72px, 9vw, 126px) clamp(18px, 4vw, 54px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 17, 31, .96), rgba(7, 17, 31, .78)),
    image-set(
      url("/assets/images/hero-scr-platform.webp") type("image/webp"),
      url("/assets/images/hero-scr-platform.png") type("image/png")
    ) center/cover;
}

.service-page-hero {
  padding-top: clamp(54px, 6vw, 86px);
  padding-bottom: clamp(54px, 6vw, 86px);
  background-color: #07111f;
  background-image:
    linear-gradient(90deg, rgba(7, 17, 31, .98), rgba(7, 17, 31, .78)),
    var(--service-hero-image, image-set(
      url("/assets/images/hero-scr-platform.webp") type("image/webp"),
      url("/assets/images/hero-scr-platform.png") type("image/png")
    ));
  background-position: center, var(--service-hero-position, right center);
  background-size: cover, contain;
  background-repeat: no-repeat;
}

.page-hero p {
  max-width: 760px;
  color: #e5e7eb;
  font-size: 19px;
  line-height: 1.65;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 28px;
  align-items: start;
}

.service-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding-top: 0;
}

.content-card,
.contact-card,
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}

.content-card h2,
.contact-card h2,
.form-card h2 {
  margin-top: 0;
}

.content-card li {
  margin: 10px 0;
  line-height: 1.55;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.full { grid-column: 1 / -1; }

label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius);
  padding: 12px 13px;
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, .12);
}

.form-message {
  margin-top: 12px;
  color: var(--muted);
}

.form-message.success { color: #166534; font-weight: 850; }

.site-footer {
  color: #dbe4ef;
  background: #06111f;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 32px;
  padding: 50px clamp(18px, 4vw, 54px);
}

.footer-logo {
  width: 148px;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 15px;
  text-transform: uppercase;
}

.site-footer p,
.site-footer a {
  display: block;
  margin: 0 0 10px;
  color: #cbd5e1;
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(18px, 4vw, 54px);
  border-top: 1px solid rgba(255,255,255,.12);
  color: #cbd5e1;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1160px) {
  .site-header {
    grid-template-columns: auto auto auto;
  }

  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 18px 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 0; }
  .main-nav a::after { bottom: 6px; transform-origin: left; }
  .menu-toggle {
    display: inline-flex;
    justify-self: end;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    font-weight: 900;
  }

  .header-contact { display: none; }
  .expertise-grid,
  .service-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client-logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1320px) and (min-width: 1161px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .header-contact {
    display: none;
  }

  .main-nav {
    gap: 16px;
    font-size: 12px;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 64px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    padding: 8px 12px;
  }

  .brand { width: auto; }
  .brand-row { height: 42px; gap: 7px; }
  .brand-shield { width: 42px; height: 42px; }
  .brand-wordmark { width: 124px; height: 34px; }
  .brand > span:not(.brand-row) {
    display: none;
  }
  .menu-toggle {
    min-height: 38px;
    padding: 0 12px;
    border-radius: 10px;
  }
  .main-nav {
    grid-column: 1 / -1;
  }
  .client-button {
    grid-column: auto;
    min-height: 38px;
    width: auto;
    padding: 0 12px;
    font-size: 11px;
    border-radius: 10px;
  }

  .client-button svg {
    width: 15px;
    height: 15px;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    width: calc(100% - 32px);
    margin: 0 auto;
    padding: 82px 0 64px;
  }

  .hero-media::after {
    background: linear-gradient(90deg, rgba(4,10,17,.97), rgba(4,10,17,.78));
  }

  .service-strip li {
    width: 50%;
    padding-right: 0;
    margin-right: 0;
    border-right: 0;
  }

  .hero-actions,
  .cta-actions,
  .footer-bottom {
    flex-direction: column;
  }

  .button { width: 100%; }
  .expertise-grid,
  .metrics-grid,
  .client-logo-grid,
  .content-grid,
  .service-feature-grid,
  .footer-grid,
  .cta-band,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .metric { border-left: 0; border-top: 1px solid rgba(255,255,255,.14); }
}

@media (max-width: 980px) and (min-width: 761px) {
  .client-logo-grid-industrie-energie {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 380px) {
  .site-header {
    gap: 6px;
    padding-inline: 10px;
  }

  .brand-wordmark {
    width: 112px;
  }

  .client-button,
  .menu-toggle {
    padding-inline: 10px;
    font-size: 10px;
  }
}
