* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

:root {
  --bg-main: #0b0b0c;
  --bg-soft: #101012;
  --bg-panel: #131316;
  --bg-panel-2: #151518;
  --text-main: #f2f2f2;
  --text-soft: #c1c1c7;
  --text-dim: #8f8f95;
  --line-soft: rgba(255,255,255,0.08);
  --line-mid: rgba(255,255,255,0.16);
  --line-strong: rgba(255,255,255,0.34);
  --shadow-panel: 0 18px 40px rgba(0,0,0,0.24);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-main);
  color: #e5e5e5;
  line-height: 1.6;
}

.container {
  width: min(90%, 1200px);
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 120px 0;
}

.section.dark {
  background: #111113;
}

h2 {
  margin-bottom: 0;
  font-size: 28px;
}

.section-label {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.section-head {
  max-width: 880px;
  margin-bottom: 58px;
}

.section-head-narrow {
  max-width: 760px;
}

.section-head h2 {
  font-size: clamp(38px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--text-main);
}

.panel-topline {
  position: absolute;
  top: 0;
  left: 0;
  width: 92px;
  height: 2px;
  background: linear-gradient(to right, rgba(255,255,255,0.5), rgba(255,255,255,0));
  opacity: 0.45;
}

.panel-corner {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 18px;
  height: 18px;
  border-top: 1px solid rgba(255,255,255,0.18);
  border-right: 1px solid rgba(255,255,255,0.18);
  opacity: 0.45;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* HEADER */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 96px;
  gap: 30px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  display: block;
  height: 46px;
  width: auto;
  max-width: 380px;
  object-fit: contain;
  filter: brightness(1.15) contrast(1.1);
}

nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

nav a {
  position: relative;
  margin-left: 28px;
  text-decoration: none;
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.25s ease, opacity 0.25s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 0;
  height: 1px;
  background: rgba(255,255,255,0.6);
  transition: width 0.25s ease;
}

nav a:hover {
  color: #ffffff;
}

nav a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  z-index: 1200;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #e5e5e5;
  margin: 5px 0;
}

.lang-switcher {
  position: relative;
  display: inline-block;
  z-index: 1100;
}

.lang-current {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 150px;
  background: transparent;
  color: #f2f2f2;
  border: 1px solid rgba(255,255,255,0.16);
  padding: 10px 16px;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.lang-current:hover {
  border-color: rgba(255,255,255,0.32);
  background: rgba(255,255,255,0.04);
}

.lang-arrow {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid #f2f2f2;
  border-bottom: 1.5px solid #f2f2f2;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.lang-switcher.open .lang-arrow {
  transform: rotate(-135deg) translateY(-1px);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  background: #131316;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.lang-switcher.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  background: transparent;
  border: none;
  color: #cfcfd4;
  text-align: left;
  padding: 10px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-option:hover,
.lang-option.active {
  background: rgba(255,255,255,0.06);
  color: #ffffff;
}

@media (max-width: 768px) {
  .lang-switcher {
    width: 100%;
  }

  .lang-current {
    width: 100%;
    min-width: unset;
    padding: 9px 14px;
    font-size: 13px;
  }

  .lang-menu {
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    min-width: unset;
    width: 100%;
  }

  .lang-option {
    font-size: 13px;
  }

}

/* HERO */

.hero {
  position: relative;
  height: 100vh;
  min-height: 760px;
  overflow: hidden;
  background: #050505;
}

.hero-slider {
  display: flex;
  width: 100vw;
  height: 100%;
  transition: transform 1s ease;
}

.slide {
  flex: 0 0 100vw;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.18) 22%, rgba(0,0,0,0.20) 100%);
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(0,0,0,0.78) 0%,
      rgba(0,0,0,0.52) 38%,
      rgba(0,0,0,0.22) 68%,
      rgba(0,0,0,0.08) 100%
    );
  z-index: 2;
}

.hero-content {
  position: absolute;
  z-index: 3;
  left: 10%;
  top: 64%;
  transform: translateY(-50%);
  max-width: 620px;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}

.hero-content h1 {
  margin-bottom: 22px;
  font-size: clamp(46px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 4px 24px rgba(0,0,0,0.28);
}

.hero-content p {
  max-width: 480px;
  font-size: 20px;
  line-height: 1.7;
  color: rgba(255,255,255,0.86);
}

/* ABOUT */

/* ABOUT */

.about-section {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.015) 0%, rgba(255,255,255,0) 100%),
    #09090a;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: 18px;
  align-items: start;
}

.about-panel {
  position: relative;
  padding: 34px 32px 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0) 100%),
    var(--bg-soft);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.about-panel:hover {
  transform: translateY(-3px);
  border-color: var(--line-mid);
  box-shadow: var(--shadow-panel);
}

.about-panel:hover .panel-corner {
  opacity: 0.82;
  transform: translate(2px, -2px);
}

.about-left p {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255,255,255,0.76);
  margin-bottom: 16px;
  max-width: 760px;
}

.about-left p:last-child {
  margin-bottom: 0;
}

.about-left .about-lead {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 21px;
  line-height: 1.55;
  color: #ffffff;
}

.about-right {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-content: start;
}

.about-item {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: center;
  padding: 15px 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.015) 0%, rgba(255,255,255,0) 100%),
    #101012;
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.88);
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.about-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.42), rgba(255,255,255,0.06));
  opacity: 0.65;
}

.about-item::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 12px;
  height: 12px;
  border-top: 1px solid rgba(255,255,255,0.16);
  border-right: 1px solid rgba(255,255,255,0.16);
  opacity: 0.35;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.about-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.16);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.005) 100%),
    #131316;
  box-shadow: 0 14px 28px rgba(0,0,0,0.18);
}

.about-item:hover::after {
  opacity: 0.8;
  transform: translate(2px, -2px);
}

/* SOLUTIONS */

.solutions-section {
  position: relative;
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.015), rgba(255,255,255,0)),
    #0b0b0c;
}

.solutions-header {
  margin-bottom: 52px;
}

.solutions-section h2 {
  margin: 0;
  font-size: clamp(44px, 6vw, 84px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  color: #f2f2f2;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.solution-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  padding: 30px 26px 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.015) 0%, rgba(255,255,255,0) 100%),
    #101012;
  border: 1px solid rgba(255,255,255,0.08);
  color: #f2f2f2;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.solution-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #c7c7c7 0%, rgba(199,199,199,0) 70%);
  opacity: 0.35;
  transition: opacity 0.25s ease;
}

.solution-card::after {
  content: "";
  position: absolute;
  top: 22px;
  right: 22px;
  width: 18px;
  height: 18px;
  border-top: 1px solid rgba(255,255,255,0.18);
  border-right: 1px solid rgba(255,255,255,0.18);
  opacity: 0.4;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.solution-card:hover {
  transform: translateY(-3px);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.005) 100%),
    #141417;
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 16px 36px rgba(0,0,0,0.22);
}

.solution-card:hover::before {
  opacity: 0.8;
}

.solution-card:hover::after {
  opacity: 0.85;
  transform: translate(2px, -2px);
}

.solution-card-number {
  display: inline-block;
  margin-bottom: 34px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #8f8f95;
}

.solution-card h3 {
  margin: 0 0 18px;
  max-width: 90%;
  font-size: 22px;
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: #f5f5f5;
}

.solution-card p {
  margin: 0;
  max-width: 92%;
  font-size: 15px;
  line-height: 1.75;
  color: #b2b2b8;
}

/* ===== Solutions interaction hint (subtle underline) ===== */

.solution-card h3 {
  position: relative;
  display: inline-block;
}

.solution-card h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 1px;
  background: rgba(245, 245, 245, 0.8); /* под твой текст */
  transition: width 0.28s ease;
}

.solution-card:hover h3::after {
  width: 100%;
}

/* MODAL OVERLAY */

.solutions-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.42s;
  z-index: 1998;
  will-change: opacity;
}

.solutions-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0s;
}

/* MODAL */

.solutions-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(760px, calc(100vw - 40px));
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0) 100%),
    #0f1012;
  border: 1px solid rgba(255,255,255,0.11);
  padding: 40px 40px 34px;
  transform: translate3d(-50%, -47%, 0) scale(0.985);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.42s;
  z-index: 1999;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  will-change: opacity, transform;
  backface-visibility: hidden;
}

.solutions-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(-50%, -50%, 0) scale(1);
  transition:
    opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0s;
}

.solutions-modal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, rgba(255,255,255,0.5), rgba(255,255,255,0));
  opacity: 0.35;
}

.solutions-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: #f3f3f3;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.solutions-modal-close:hover {
  opacity: 0.65;
  transform: rotate(90deg);
}

.solutions-modal-content {
  padding-right: 6px;
}

.solutions-modal-panel {
  display: none;
  opacity: 0;
  transform: translateY(8px);
}

.solutions-modal-panel.active {
  display: block;
  animation: solutionsPanelIn 0.34s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

@keyframes solutionsPanelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.solutions-modal-kicker {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #97979d;
}

.solutions-modal h3 {
  margin: 0 0 22px;
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: #f5f5f5;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.solutions-modal-lead {
  margin: 0 0 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 21px;
  line-height: 1.55;
  color: #ffffff;
}

.solutions-modal p {
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.85;
  color: #c1c1c7;
}

/* LOCK SCROLL */

body.modal-open {
  overflow: hidden;
  padding-right: var(--scrollbar-compensation, 0px);
}

@media (max-width: 768px) {
  .solutions-modal {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 32px);
    padding: 32px 22px 24px;
  }

  .solutions-modal h3 {
    font-size: 30px;
    line-height: 1.04;
    padding-right: 34px;
  }

  .solutions-modal-lead {
    font-size: 18px;
    padding-bottom: 18px;
  }

  .solutions-modal p {
    font-size: 16px;
    line-height: 1.75;
  }
}

/* PROJECTS */

.projects-section {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.015) 0%, rgba(255,255,255,0) 100%),
    #0e0e10;
  overflow: hidden;
}

.projects-head {
  max-width: 760px;
  margin-bottom: 60px;
}

.projects-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 14px;
}

.projects-head h2 {
  font-size: clamp(44px, 6vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #f5f5f5;
  margin-bottom: 20px;
}

.projects-lead {
  max-width: 680px;
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.72);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.015) 0%, rgba(255,255,255,0.005) 100%),
    #101012;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 32px 28px 28px;
  min-height: 320px;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.005) 100%),
    #141417;
  box-shadow: 0 16px 36px rgba(0,0,0,0.22);
}

.project-topline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, rgba(255,255,255,0.46), rgba(255,255,255,0));
  opacity: 0.35;
  transition: opacity 0.25s ease;
}

.project-corner {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 18px;
  height: 18px;
  border-top: 1px solid rgba(255,255,255,0.18);
  border-right: 1px solid rgba(255,255,255,0.18);
  opacity: 0.4;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.project-card:hover .project-topline {
  opacity: 0.8;
}

.project-card:hover .project-corner {
  opacity: 0.85;
  transform: translate(2px, -2px);
}

.project-number {
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.18em;
  color: #8f8f95;
  margin-bottom: 28px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 18px;
}

.project-meta span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.5);
}

.project-card h3 {
  margin-bottom: 16px;
  max-width: 92%;
  font-size: 24px;
  line-height: 1.14;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: #f5f5f5;
}

.project-text {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255,255,255,0.72);
  max-width: 94%;
  margin-bottom: 26px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}

/* CONTACT */

.contact-section {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.012) 0%, rgba(255,255,255,0) 100%),
    #0c0c0d;
  overflow: hidden;
}

.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.02) 0%, transparent 35%, transparent 65%, rgba(255,255,255,0.015) 100%);
  pointer-events: none;
}

.contact-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
}

.contact-info {
  position: relative;
  padding: 38px 36px 34px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0) 100%),
    #101012;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.contact-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, rgba(255,255,255,0.46), rgba(255,255,255,0));
  opacity: 0.35;
}

.contact-info::after {
  content: "";
  position: absolute;
  top: 22px;
  right: 22px;
  width: 18px;
  height: 18px;
  border-top: 1px solid rgba(255,255,255,0.18);
  border-right: 1px solid rgba(255,255,255,0.18);
  opacity: 0.4;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.contact-info:hover,
.contact-form-panel:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 16px 36px rgba(0,0,0,0.22);
}

.contact-info:hover::after,
.contact-form-panel:hover .contact-corner {
  opacity: 0.85;
  transform: translate(2px, -2px);
}

.contact-info .section-label {
  margin-bottom: 16px;
}

.contact-info h2 {
  font-size: clamp(44px, 6vw, 84px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  color: var(--text-main);
  margin-bottom: 24px;
}

.contact-lead {
  margin-bottom: 14px;
  font-size: 22px;
  line-height: 1.55;
  color: #ffffff;
}

.contact-text {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255,255,255,0.72);
  max-width: 620px;
  margin-bottom: 34px;
}

.contact-points {
  display: grid;
  gap: 14px;
  margin-bottom: 40px;
}

.contact-point {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.86);
}

.contact-point::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 10px;
  height: 1px;
  background: rgba(255,255,255,0.5);
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 26px 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.contact-detail-label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.4);
}

.contact-detail-block p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #f0f0f0;
}

.contact-detail-block a {
  color: #f0f0f0;
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.contact-detail-block a:hover {
  color: #ffffff;
  opacity: 0.8;
}

.contact-form-panel {
  position: relative;
  padding: 38px 34px 34px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.005) 100%),
    #101012;
  border: 1px solid rgba(255,255,255,0.08);
  min-height: 100%;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.contact-panel-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, rgba(255,255,255,0.46), rgba(255,255,255,0));
  opacity: 0.35;
}

.contact-corner {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 18px;
  height: 18px;
  border-top: 1px solid rgba(255,255,255,0.18);
  border-right: 1px solid rgba(255,255,255,0.18);
  opacity: 0.4;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.46);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 0;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  background: transparent;
  color: #f3f3f3;
  font-size: 16px;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.25s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.28);
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: rgba(255,255,255,0.55);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-submit-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: fit-content;
  min-width: 210px;
  margin-top: 10px;
  padding: 16px 22px;
  border: 1px solid rgba(255,255,255,0.12);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.015) 0%, rgba(255,255,255,0) 100%),
    #101012;
  color: #f2f2f2;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.contact-submit-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #c7c7c7 0%, rgba(199,199,199,0) 70%);
  opacity: 0.35;
  transition: opacity 0.25s ease;
}

.contact-submit-btn::after {
  content: "";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 14px;
  height: 14px;
  border-top: 1px solid rgba(255,255,255,0.18);
  border-right: 1px solid rgba(255,255,255,0.18);
  opacity: 0.4;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.contact-submit-btn:hover {
  transform: translateY(-3px);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.005) 100%),
    #141417;
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 16px 36px rgba(0,0,0,0.22);
}

.contact-submit-btn:hover::before {
  opacity: 0.8;
}

.contact-submit-btn:hover::after {
  opacity: 0.85;
  transform: translate(2px, -2px);
}

.contact-response-note {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.45);
}

/* FOOTER */

footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  background: #09090a;
}

.footer-inner {
  padding: 28px 0;
}

.footer-inner p {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
}

/* RESPONSIVE */

@media (max-width: 1100px) {
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  .section {
    padding: 100px 0;
  }

  .header-inner {
    min-height: 76px;
  }

  .logo {
   max-width: none;
  }

  nav a {
    margin-left: 18px;
    font-size: 12px;
  }

  .nav-toggle {
  display: block;
}

  .hero {
    min-height: 680px;
  }

  .hero-content {
    top: 62%;
    max-width: 560px;
  }

  .contact-details {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 84px 0;
  }

  .hero {
    min-height: 620px;
    height: 100svh;
  }

  .hero-content {
    left: 5%;
    right: 5%;
    top: 66%;
    max-width: 100%;
  }

  .hero-kicker {
    margin-bottom: 14px;
    font-size: 11px;
  }

  .hero-content p {
    max-width: 100%;
    font-size: 17px;
    line-height: 1.65;
  }

  .section-head,
  .projects-head,
  .solutions-header {
    margin-bottom: 36px;
  }

  .about-panel,
.contact-info,
.contact-form-panel,
.project-card,
.solution-card {
  padding-left: 22px;
  padding-right: 22px;
}

.about-panel {
  padding-top: 28px;
  padding-bottom: 22px;
}

.about-left .about-lead {
  font-size: 19px;
  line-height: 1.5;
  padding-bottom: 16px;
}

.about-left p {
  font-size: 15px;
  line-height: 1.7;
}

.about-item {
  min-height: auto;
  padding: 14px 16px 14px 18px;
  font-size: 12px;
}

  .solutions-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .solution-card {
    min-height: auto;
    padding: 26px 22px 24px;
  }

  .solution-card-number {
    margin-bottom: 22px;
  }

  .solution-card h3 {
    max-width: 100%;
    font-size: 20px;
  }

  .solution-card p {
    max-width: 100%;
    font-size: 15px;
  }

  .solutions-modal {
    width: calc(100% - 24px);
    padding: 32px 22px 24px;
  }

  .solutions-modal h3 {
    font-size: 30px;
  }

  .solutions-modal-lead {
    font-size: 18px;
    padding-bottom: 18px;
  }

  .solutions-modal p {
    font-size: 16px;
    line-height: 1.75;
  }

  .projects-lead,
  .contact-text {
    font-size: 15px;
    line-height: 1.75;
  }

  .project-card {
    min-height: auto;
    padding-top: 26px;
    padding-bottom: 22px;
  }

  .project-number {
    font-size: 12px;
    margin-bottom: 22px;
  }

  .project-card h3 {
    font-size: 21px;
    max-width: 100%;
  }

  .project-text {
    font-size: 15px;
    line-height: 1.75;
    max-width: 100%;
  }

  .project-tags span {
    font-size: 10px;
    padding: 0 12px;
    min-height: 32px;
  }

  .contact-info,
  .contact-form-panel {
    padding-top: 30px;
    padding-bottom: 26px;
  }

  .contact-lead {
    font-size: 18px;
  }

  .contact-points {
    margin-bottom: 30px;
  }

  .contact-point {
    font-size: 12px;
    line-height: 1.6;
    padding-left: 18px;
  }

  .contact-details {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .contact-submit-btn {
    width: 100%;
    min-width: unset;
  }

  .project-card {
    opacity: 0;
    transform: translateY(24px);
  }

  .project-card.project-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .container {
    width: 92%;
  }

  .hero-content h1,
  .section-head h2,
  .solutions-section h2,
  .projects-head h2,
  .contact-info h2 {
    word-break: normal;
  }

  .form-group input,
  .form-group textarea {
    font-size: 15px;
    padding: 14px 0;
  }

  .footer-inner p {
    font-size: 11px;
    line-height: 1.5;
  }
}

@media (max-width: 992px) {
  .header-inner {
    position: relative;
    min-height: 76px;
    padding: 16px 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

 .logo {
  gap: 0;
}

  .nav-toggle {
    display: block;
    flex-shrink: 0;
  }

  nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    width: min(260px, 82vw);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin-top: 0;
    padding: 14px 0;
    background: rgba(10, 10, 11, 0.98);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 18px 40px rgba(0,0,0,0.35);
    z-index: 1100;
  }

  nav.active {
    display: flex;
  }

  nav a {
    width: 100%;
    margin-left: 0;
    padding: 12px 18px;
    font-size: 12px;
    letter-spacing: 0.14em;
  }

  nav a::after {
    display: none;
  }
}

@media (max-width: 992px) {
  .logo img {
    height: 52px;
    max-width: 340px;
  }
}

@media (max-width: 768px) {
  .logo img {
    height: 46px;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .logo img {
    height: 40px;
    max-width: 225px;
  }
}

/* LEGAL / IMPRESSUM */

.logo a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.legal-page {
  background: var(--bg-main);
  color: var(--text-main);
}

.legal-hero {
  position: relative;
  padding: 180px 0 90px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.018) 0%, rgba(255,255,255,0) 100%),
    #09090a;
  overflow: hidden;
}

.legal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.025) 0%, transparent 38%, transparent 68%, rgba(255,255,255,0.014) 100%);
  pointer-events: none;
}

.legal-hero .container {
  position: relative;
  z-index: 2;
}

.legal-hero h1 {
  margin: 0 0 24px;
  max-width: 900px;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.92;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: var(--text-main);
}

.legal-hero p {
  max-width: 680px;
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255,255,255,0.72);
}

.legal-section {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.012) 0%, rgba(255,255,255,0) 100%),
    #0b0b0c;
}

.legal-section-compact {
  padding-top: 0;
}

.legal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 24px;
  align-items: start;
}

.legal-card {
  position: relative;
  padding: 38px 36px 34px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0) 100%),
    #101012;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.legal-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 16px 36px rgba(0,0,0,0.22);
}

.legal-card:hover .panel-corner {
  opacity: 0.85;
  transform: translate(2px, -2px);
}

.legal-block {
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.legal-block:first-of-type {
  padding-top: 8px;
}

.legal-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.legal-block h2 {
  margin: 0 0 18px;
  max-width: 780px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #f5f5f5;
}

.legal-block h3,
.legal-text-card h3 {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.86);
}

.legal-block p,
.legal-text-card p,
.legal-side-item p {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255,255,255,0.72);
}

.legal-block a,
.legal-side-item a,
.footer-links a {
  color: #f0f0f0;
  text-decoration: none;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.legal-block a:hover,
.legal-side-item a:hover,
.footer-links a:hover {
  color: #ffffff;
  opacity: 0.75;
}

.legal-side-card {
  position: sticky;
  top: 126px;
}

.legal-side-item {
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.legal-side-item:first-of-type {
  padding-top: 8px;
}

.legal-side-item span {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
}

.legal-back-link {
  position: relative;
  display: inline-flex;
  margin-top: 28px;
  padding: 14px 18px;
  border: 1px solid rgba(255,255,255,0.12);
  color: #f2f2f2;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.legal-back-link:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.035);
}

.legal-text-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.legal-text-card {
  position: relative;
  padding: 30px 28px 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.015) 0%, rgba(255,255,255,0.005) 100%),
    #101012;
  border: 1px solid rgba(255,255,255,0.08);
}

.footer-inner-split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-links a {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.46);
}

@media (max-width: 1100px) {
  .legal-grid,
  .legal-text-grid {
    grid-template-columns: 1fr;
  }

  .legal-side-card {
    position: relative;
    top: auto;
  }
}

@media (max-width: 768px) {
  .legal-hero {
    padding: 136px 0 70px;
  }

  .legal-card,
  .legal-text-card {
    padding-left: 22px;
    padding-right: 22px;
  }

  .legal-block h2 {
    font-size: 28px;
  }

  .legal-block p,
  .legal-text-card p,
  .legal-side-item p {
    font-size: 15px;
    line-height: 1.75;
  }

  .footer-inner-split {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

/* LEGAL HERO IMAGE SLIDER */

.legal-hero-with-slider {
  position: relative;
  min-height: 620px;
  padding: 180px 0 90px;
  overflow: hidden;
  background: #050505;
  isolation: isolate;
}

.legal-hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  width: 100vw;
  height: 100%;
  transition: transform 1s ease;
}

.legal-slide {
  flex: 0 0 100vw;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.legal-hero-with-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.38) 0%, rgba(0,0,0,0.26) 30%, rgba(0,0,0,0.50) 100%);
  pointer-events: none;
}

.legal-hero-with-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      90deg,
      rgba(0,0,0,0.82) 0%,
      rgba(0,0,0,0.62) 38%,
      rgba(0,0,0,0.30) 68%,
      rgba(0,0,0,0.10) 100%
    );
  pointer-events: none;
}

.legal-hero-with-slider .container {
  position: relative;
  z-index: 3;
}

.legal-hero-with-slider h1 {
  text-shadow: 0 5px 28px rgba(0,0,0,0.38);
}

.legal-hero-with-slider p {
  max-width: 660px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.35);
}

@media (max-width: 768px) {
  .legal-hero-with-slider {
    min-height: 540px;
    padding: 136px 0 70px;
  }

  .legal-slide {
    background-position: center;
  }
}

/* FIX LONG GERMAN WORDS IN SOLUTIONS CARDS / MODAL */

.solution-card h3,
.solutions-modal h3 {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.solution-card h3 {
  display: block;
  width: 100%;
  padding-right: 18px;
}

.solutions-modal {
  overflow-x: hidden;
  max-width: calc(100vw - 24px);
}

.solutions-modal h3 {
  padding-right: 44px;
  font-size: clamp(32px, 4.2vw, 52px);
}

@media (max-width: 768px) {
  .solutions-modal h3 {
    font-size: clamp(26px, 8vw, 34px);
    line-height: 1.04;
    padding-right: 34px;
  }

  .solution-card h3 {
    padding-right: 28px;
  }
}

/* REMOVE UNDERLINE FROM LANGUAGE SWITCHER */

.lang-switcher a,
.lang-switcher button,
.lang-current,
.lang-option {
  text-decoration: none;
}

.lang-switcher a::before,
.lang-switcher a::after,
.lang-current::before,
.lang-current::after,
.lang-option::before,
.lang-option::after {
  display: none;
  content: none;
}

/* PREMIUM MINIMAL SCREW-STYLE CLOSE BUTTON */

.solutions-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;

  width: 38px;
  height: 38px;
  padding: 0;

  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.025);

  color: transparent;
  font-size: 0;
  line-height: 0;

  cursor: pointer;
  opacity: 0.92;
  overflow: hidden;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    inset 0 -1px 0 rgba(0,0,0,0.55),
    0 10px 28px rgba(0,0,0,0.26);

  transform: rotate(0deg) translateZ(0);
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease,
    box-shadow 0.28s ease;

  will-change: transform;
}

/* inner precision ring */
.solutions-modal-close::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.05),
    inset 0 -1px 2px rgba(0,0,0,0.38);
}

/* horizontal screw slot */
.solutions-modal-close::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 18px;

  width: 16px;
  height: 2px;
  border-radius: 999px;

  background: rgba(255,255,255,0.58);
  box-shadow: 0 1px 0 rgba(0,0,0,0.55);
}

/* vertical screw slot */
.solutions-modal-close .close-screw-slot {
  position: absolute;
  left: 18px;
  top: 11px;

  display: block;
  width: 2px;
  height: 16px;
  border-radius: 999px;

  background: rgba(255,255,255,0.58);
  box-shadow: 1px 0 0 rgba(0,0,0,0.45);
}

/* hover: not playful, just controlled rotation */
.solutions-modal-close:hover {
  opacity: 1;
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.045);

  transform: rotate(90deg) translateZ(0);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    inset 0 -1px 0 rgba(0,0,0,0.62),
    0 12px 32px rgba(0,0,0,0.34);
}

.solutions-modal-close:active {
  transform: rotate(90deg) scale(0.96) translateZ(0);
}

.solutions-modal-close:focus-visible {
  outline: none;
  border-color: rgba(255,255,255,0.42);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    inset 0 -1px 0 rgba(0,0,0,0.62),
    0 0 0 3px rgba(255,255,255,0.08),
    0 12px 32px rgba(0,0,0,0.34);
}