:root {
  --lime: #bfff00;
  --lime-soft: rgba(191, 255, 0, 0.18);
  --bg: #0d0f10;
  --panel: #16191c;
  --panel-2: #202428;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f6f7f4;
  --muted: #b8c0b3;
  --muted-2: #788174;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.44);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
}

body.locked {
  overflow: hidden;
}

img,
svg {
  display: block;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
  width: min(calc(100% - 32px), var(--max));
  padding: 12px 14px 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(13, 15, 16, 0.78);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  min-width: 54px;
  height: 34px;
  border-radius: 6px;
  color: #0f120d;
  background: var(--lime);
  box-shadow: 0 0 30px rgba(191, 255, 0, 0.3);
}

.brand-text {
  font-size: 1.08rem;
}

.main-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 28px;
  color: rgba(246, 247, 244, 0.78);
  font-weight: 650;
  font-size: 0.92rem;
}

.main-nav a,
.site-footer nav a,
.mobile-panel a {
  transition: color 180ms ease;
}

.main-nav a:hover,
.site-footer nav a:hover,
.mobile-panel a:hover {
  color: var(--lime);
}

.header-phone,
.mobile-call {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(191, 255, 0, 0.34);
  border-radius: 7px;
  color: var(--lime);
  background: rgba(191, 255, 0, 0.09);
  font-weight: 800;
  white-space: nowrap;
}

.header-phone svg,
.btn svg,
.service-icon svg,
.lightbox svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-self: end;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
}

.lang-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 30px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
}

.lang-btn.is-active {
  border-color: rgba(191, 255, 0, 0.72);
  background: rgba(191, 255, 0, 0.12);
}

.flag {
  display: grid;
  width: 24px;
  height: 16px;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.flag-pl {
  grid-template-rows: repeat(2, 1fr);
}

.flag-pl span:first-child {
  background: #ffffff;
}

.flag-pl span:last-child {
  background: #dc143c;
}

.flag-de {
  grid-template-rows: repeat(3, 1fr);
}

.flag-de span:nth-child(1) {
  background: #000000;
}

.flag-de span:nth-child(2) {
  background: #dd0000;
}

.flag-de span:nth-child(3) {
  background: #ffce00;
}

.menu-toggle {
  display: none;
  padding: 0;
  width: 44px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  appearance: none;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.mobile-panel {
  position: fixed;
  inset: 86px 16px auto;
  z-index: 49;
  display: none;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 15, 16, 0.96);
  box-shadow: var(--shadow);
}

.mobile-panel.is-open {
  display: block;
}

.mobile-panel nav {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  padding: 140px 20px 34px;
}

.hero-bg,
.hero-bg img,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(13, 15, 16, 0.96) 0%, rgba(13, 15, 16, 0.78) 34%, rgba(13, 15, 16, 0.2) 64%, rgba(13, 15, 16, 0.32) 100%),
    linear-gradient(180deg, rgba(13, 15, 16, 0.08) 0%, rgba(13, 15, 16, 0.75) 100%);
}

.hero-shade {
  pointer-events: none;
  background:
    linear-gradient(0deg, var(--bg) 0%, rgba(13, 15, 16, 0) 24%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 96px);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.62fr);
  align-items: center;
  width: min(100%, var(--max));
  min-height: calc(100svh - 230px);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 6.8vw, 6.2rem);
  line-height: 0.94;
  letter-spacing: 0;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.hero-lead {
  max-width: 620px;
  margin-bottom: 34px;
  color: rgba(246, 247, 244, 0.82);
  font-size: clamp(1.04rem, 2vw, 1.32rem);
}

.hero-actions,
.cta-section,
.hero-stats,
.contact-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 7px;
  border: 1px solid transparent;
  font-weight: 850;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.btn-primary {
  color: #11150e;
  background: var(--lime);
  box-shadow: 0 16px 36px rgba(191, 255, 0, 0.22);
}

.btn-secondary {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.hero-stats {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max));
  margin: 28px auto 0;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.hero-stats div {
  flex: 1 1 190px;
  min-height: 86px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.hero-stats strong {
  display: block;
  color: var(--lime);
  font-size: 1.3rem;
  line-height: 1.1;
}

.hero-stats span {
  color: rgba(246, 247, 244, 0.72);
  font-size: 0.88rem;
}

.section {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 96px 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.44fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 38px;
}

.section-head > div:first-child {
  min-width: 0;
}

.section-head h2,
.tech-copy h2,
.cta-section h2,
.contact-copy h2 {
  margin-bottom: 0;
  font-size: clamp(2.1rem, 5vw, 4.1rem);
  line-height: 1;
  letter-spacing: 0;
  text-wrap: balance;
}

.section-schematic {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 230px;
  overflow: hidden;
  border: 1px solid rgba(191, 255, 0, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(191, 255, 0, 0.09), rgba(255, 255, 255, 0.035)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}

.section-schematic::before {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(191, 255, 0, 0.12);
  border-radius: 6px;
  content: "";
}

.section-schematic svg {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  height: auto;
}

.schematic-main,
.schematic-soft,
.schematic-thin,
.schematic-dot {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.schematic-main {
  stroke: var(--lime);
  stroke-width: 7;
  filter: drop-shadow(0 0 14px rgba(191, 255, 0, 0.28));
}

.schematic-soft {
  stroke: rgba(246, 247, 244, 0.18);
  stroke-width: 5;
}

.schematic-thin {
  stroke: rgba(191, 255, 0, 0.56);
  stroke-width: 3.5;
}

.schematic-dot {
  stroke: var(--lime);
  stroke-width: 4;
  stroke-dasharray: 9 10;
}

.schematic-node {
  fill: var(--lime);
  filter: drop-shadow(0 0 12px rgba(191, 255, 0, 0.38));
}

.schematic-label {
  fill: var(--lime);
  font-family: "Inter", Arial, sans-serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  filter: drop-shadow(0 0 14px rgba(191, 255, 0, 0.3));
}

.intro-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.intro-grid article,
.service-card,
.timeline article,
.contact-form,
.contact-boxes a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
}

.intro-grid article {
  padding: 28px;
}

.intro-grid span,
.timeline span {
  color: var(--lime);
  font-weight: 900;
}

.intro-grid h3,
.service-card h3,
.timeline h3 {
  margin: 16px 0 10px;
  font-size: 1.28rem;
}

.intro-grid p,
.service-card p,
.timeline p,
.tech-copy p,
.cta-section p,
.contact-copy p,
.site-footer p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.service-card {
  min-height: 350px;
  padding: 24px;
}

.service-card.featured {
  grid-column: span 2;
  border-color: rgba(191, 255, 0, 0.26);
  background:
    linear-gradient(145deg, rgba(191, 255, 0, 0.1), rgba(255, 255, 255, 0.035)),
    var(--panel);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 7px;
  color: var(--lime);
  background: rgba(191, 255, 0, 0.1);
}

.service-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.service-card li {
  padding: 7px 10px;
  border: 1px solid rgba(191, 255, 0, 0.22);
  border-radius: 999px;
  color: var(--lime);
  font-size: 0.82rem;
  font-weight: 800;
}

.tech-band {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
  gap: 50px;
  width: min(calc(100% - 40px), var(--max));
  margin: 18px auto;
  padding: 56px;
  border: 1px solid rgba(191, 255, 0, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 72% 10%, rgba(191, 255, 0, 0.16), transparent 28%),
    linear-gradient(145deg, #171a1d, #0c0e0f);
  box-shadow: var(--shadow);
}

.tech-copy p {
  margin-top: 22px;
  font-size: 1.05rem;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline article {
  position: relative;
  overflow: hidden;
  padding: 22px 24px 22px 88px;
}

.timeline article::before {
  position: absolute;
  top: 20px;
  left: 24px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(191, 255, 0, 0.32);
  border-radius: 50%;
  content: "";
  background: rgba(191, 255, 0, 0.09);
}

.gallery-section {
  padding-bottom: 70px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.gallery button {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--panel-2);
  cursor: pointer;
}

.gallery button:nth-child(1),
.gallery button:nth-child(8) {
  grid-column: span 6;
  min-height: 310px;
}

.gallery button:nth-child(2),
.gallery button:nth-child(3),
.gallery button:nth-child(4),
.gallery button:nth-child(5),
.gallery button:nth-child(6),
.gallery button:nth-child(7),
.gallery button:nth-child(n+9) {
  grid-column: span 3;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease, filter 420ms ease;
}

.gallery button::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.68) 100%),
    linear-gradient(45deg, rgba(191, 255, 0, 0.16), transparent 40%);
  opacity: 0;
  transition: opacity 220ms ease;
}

.gallery button:hover img {
  transform: scale(1.045);
  filter: saturate(1.08) contrast(1.05);
}

.gallery button:hover::after {
  opacity: 1;
}

.cta-section {
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 40px), var(--max));
  margin: 14px auto 0;
  padding: 44px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(191, 255, 0, 0.92), rgba(191, 255, 0, 0.62)),
    #bfff00;
  color: #10130d;
}

.cta-section .eyebrow,
.cta-section p {
  color: rgba(16, 19, 13, 0.72);
}

.cta-section div {
  max-width: 760px;
}

.cta-section .btn-primary {
  color: var(--text);
  background: #10130d;
  box-shadow: none;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 0.7fr);
  gap: 44px;
  align-items: start;
}

.contact-copy p {
  max-width: 680px;
  margin-top: 22px;
}

.contact-boxes {
  margin-top: 28px;
}

.human-check {
  margin-top: 28px;
  border: 1px solid rgba(191, 255, 0, 0.24);
  border-radius: 8px;
  background: rgba(191, 255, 0, 0.08);
}

.human-check label {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  cursor: pointer;
}

.human-check input {
  width: 22px;
  height: 22px;
  accent-color: var(--lime);
}

.human-check strong,
.human-check small {
  display: block;
}

.human-check strong {
  color: var(--lime);
  font-size: 0.96rem;
}

.human-check small {
  color: var(--muted);
  font-size: 0.84rem;
}

.contact-boxes a {
  flex: 1 1 230px;
  padding: 20px;
}

.contact-boxes span {
  display: block;
  color: var(--muted-2);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-boxes strong {
  display: block;
  margin-top: 5px;
  color: var(--lime);
  font-size: 1.12rem;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}

.bot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: rgba(246, 247, 244, 0.82);
  font-size: 0.9rem;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 7px;
  padding: 13px 14px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.24);
  outline: none;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(191, 255, 0, 0.7);
  box-shadow: 0 0 0 3px rgba(191, 255, 0, 0.12);
}

.form-guard-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.is-locked {
  cursor: pointer;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 34px 0 46px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  max-width: 540px;
  margin-top: 16px;
  font-size: 0.92rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: flex-end;
  gap: 18px;
  color: rgba(246, 247, 244, 0.72);
  font-weight: 800;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 72px;
  background: rgba(0, 0, 0, 0.86);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(100%, 1200px);
  max-height: 82vh;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.lightbox button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: var(--text);
  background: rgba(22, 25, 28, 0.86);
  cursor: pointer;
}

.lightbox-close {
  top: 24px;
  right: 24px;
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

@media (max-width: 1040px) {
  .hero-content,
  .tech-band,
  .contact,
  .section-head {
    grid-template-columns: 1fr;
  }

  .hero-content {
    max-width: 720px;
  }

  .intro-grid,
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery button:nth-child(n) {
    grid-column: span 6;
  }

  .section-schematic {
    min-height: 190px;
  }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: auto auto 1fr;
    gap: 10px;
    justify-content: start;
    position: fixed;
  }

  .main-nav,
  .header-phone {
    display: none;
  }

  .menu-toggle {
    position: static;
    display: inline-grid;
    place-content: center;
    justify-self: start;
    margin-left: 8px;
    border-color: rgba(191, 255, 0, 0.42);
    color: var(--lime);
    background: rgba(191, 255, 0, 0.1);
  }

  .language-switcher {
    position: absolute;
    top: 50%;
    right: 14px;
    justify-self: end;
    transform: translateY(-50%);
  }

  .hero {
    padding-top: 120px;
  }

  .hero-content {
    min-height: auto;
  }

  h1 {
    font-size: 4.25rem;
  }

  .section,
  .tech-band,
  .cta-section,
  .site-footer {
    width: min(calc(100% - 28px), var(--max));
  }

  .section {
    padding: 70px 0;
  }

  .tech-band,
  .cta-section {
    padding: 30px;
  }

  .service-card.featured {
    grid-column: auto;
  }

  .intro-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .gallery {
    gap: 9px;
  }

  .gallery button:nth-child(n) {
    grid-column: span 12;
    min-height: 240px;
  }

  .site-footer {
    display: grid;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 540px) {
  .site-header {
    top: 10px;
    left: 10px;
    width: min(calc(100vw - 20px), 370px);
    transform: none;
  }

  .brand-text {
    display: none;
  }

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

  .hero-content,
  .hero-stats {
    width: min(100%, 362px);
    margin-left: 0;
    margin-right: auto;
  }

  .hero-actions {
    max-width: 362px;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 100%;
  }

  .hero-lead {
    max-width: 340px;
    font-size: 1rem;
  }

  h1 {
    font-size: 3.75rem;
  }

  html[lang="de"] h1 {
    font-size: 3.25rem;
  }

  .language-switcher {
    right: 10px;
    gap: 5px;
  }

  .lang-btn {
    width: 32px;
    height: 26px;
  }

  .flag {
    width: 20px;
    height: 14px;
  }

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

  .hero-stats div {
    min-width: 0;
    min-height: 82px;
    padding: 16px;
  }

  .hero-stats strong {
    font-size: 1.12rem;
  }

  .hero-stats span {
    font-size: 0.82rem;
    overflow-wrap: anywhere;
  }

  .timeline article {
    padding-left: 24px;
  }

  .timeline article::before {
    display: none;
  }

  .contact {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 18px;
  }

  .lightbox {
    padding: 58px 14px;
  }

  .lightbox-prev,
  .lightbox-next {
    bottom: 22px;
    top: auto;
  }
}
