:root {
  --bg: #06172a;
  --bg-2: #09213a;
  --panel: rgba(244, 252, 255, 0.86);
  --panel-solid: #f7fcff;
  --line: rgba(105, 220, 255, 0.34);
  --text: #f7fcff;
  --ink: #08243a;
  --muted: #6e8295;
  --cyan: #24dfff;
  --aqua: #b9f6ff;
  --blue: #0f4e78;
  --navy: #061b31;
  --orange: #28dfff;
  --yellow: #eaffff;
  --green: #25d99a;
  --radius: 8px;
  --shadow: 0 30px 110px rgba(0, 20, 45, 0.42);
  --window-bg-fade: linear-gradient(90deg, rgba(1, 10, 22, 0.98) 0%, rgba(1, 10, 22, 0.9) 30%, rgba(3, 22, 40, 0.56) 62%, rgba(3, 22, 40, 0.08) 100%);
  --window-bg-glow: radial-gradient(circle at 86% 24%, rgba(36, 223, 255, 0.28), transparent 34%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 76% 8%, rgba(36, 223, 255, 0.3), transparent 30%),
    radial-gradient(circle at 8% 88%, rgba(0, 154, 255, 0.22), transparent 34%),
    radial-gradient(circle at 42% 14%, rgba(0, 87, 167, 0.18), transparent 28%),
    linear-gradient(135deg, #010914 0%, #03182b 46%, #053b61 100%),
    var(--bg);
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.5;
  padding: 34px 0;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(1, 9, 20, 0.92), rgba(1, 18, 33, 0.78)),
    url("assets/images/hero-command-generated.png") center / cover;
  filter: saturate(1.15) contrast(1.08) brightness(0.72);
}

body::after {
  z-index: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(36, 223, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 223, 255, 0.12) 1px, transparent 1px),
    linear-gradient(135deg, transparent 28%, rgba(36, 223, 255, 0.18), transparent 34%),
    radial-gradient(circle at 78% 24%, rgba(0, 170, 255, 0.22), transparent 13%),
    radial-gradient(circle at 15% 78%, rgba(87, 244, 255, 0.18), transparent 14%);
  background-size: 46px 46px, 46px 46px, 210px 210px, auto, auto;
}

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

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

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

p {
  color: var(--muted);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(76vw, 1240px);
  min-height: 0;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(36, 223, 255, 0.68);
  border-radius: 28px;
  background: rgba(247, 252, 255, 0.94);
  box-shadow:
    0 0 0 1px rgba(185, 246, 255, 0.18),
    0 0 42px rgba(36, 223, 255, 0.28),
    var(--shadow);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  grid-template-areas: "brand nav languages";
  align-items: center;
  gap: 12px;
  height: 92px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(36, 223, 255, 0.56);
  background:
    linear-gradient(90deg, rgba(1, 12, 27, 0.98), rgba(4, 36, 61, 0.96)),
    var(--navy);
  box-shadow:
    inset 0 -1px 0 rgba(185, 246, 255, 0.16),
    0 14px 34px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  font-weight: 950;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(36, 223, 255, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(36, 223, 255, 0.22), rgba(0, 69, 112, 0.52)),
    rgba(2, 18, 35, 0.9);
  color: var(--aqua);
  font-weight: 950;
  box-shadow: 0 0 22px rgba(36, 223, 255, 0.18);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.brand:hover .brand-mark {
  border-color: rgba(185, 246, 255, 1);
  background:
    linear-gradient(135deg, rgba(185, 246, 255, 0.96), rgba(36, 223, 255, 0.92)),
    var(--aqua);
  color: var(--navy);
  box-shadow:
    0 0 0 1px rgba(36, 223, 255, 0.42),
    0 0 22px rgba(36, 223, 255, 0.5),
    0 0 34px rgba(185, 246, 255, 0.38);
  transform: translateY(-1px);
}

.brand-text small {
  display: block;
  margin-top: -3px;
  color: #65eaff;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.brand-text {
  color: #f5fcff;
}

.main-nav {
  grid-area: nav;
  display: grid;
  flex: 1 1 auto;
  align-content: center;
  justify-content: center;
  min-width: 0;
  gap: 4px;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.main-nav a {
  border-radius: 8px;
  color: #dffaff;
  font-size: 11.5px;
  font-weight: 850;
  padding: 6px 8px;
  white-space: nowrap;
}

.main-nav a:hover {
  background: rgba(36, 223, 255, 0.15);
  color: var(--aqua);
}

.main-nav a.is-active {
  background: rgba(36, 223, 255, 0.18);
  color: #ffffff;
  font-weight: 950;
  box-shadow:
    inset 0 -2px 0 var(--cyan),
    0 0 18px rgba(36, 223, 255, 0.18);
}

.main-nav .nav-cta {
  border: 1px solid rgba(185, 246, 255, 0.7);
  background: linear-gradient(135deg, rgba(36, 223, 255, 0.96), rgba(0, 92, 150, 0.95));
  color: #00111f;
  box-shadow: 0 0 24px rgba(36, 223, 255, 0.24);
}

.main-nav .nav-cta.is-active {
  border-color: rgba(185, 246, 255, 1);
  background: linear-gradient(135deg, #ffffff, var(--aqua));
  color: var(--navy);
  font-weight: 950;
  box-shadow:
    inset 0 -2px 0 rgba(1, 16, 33, 0.42),
    0 0 24px rgba(36, 223, 255, 0.38);
}

.language-switch {
  grid-area: languages;
  display: grid;
  grid-template-columns: repeat(2, max-content);
  align-items: center;
  justify-self: end;
  gap: 4px;
  min-width: max-content;
}

.language-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 30px;
  border: 1px solid rgba(36, 223, 255, 0.36);
  border-radius: 8px;
  background: rgba(1, 16, 33, 0.66);
  color: #dffaff;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 950;
  padding: 5px 6px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.language-switch button:hover,
.language-switch button.is-active {
  border-color: rgba(185, 246, 255, 0.94);
  background: rgba(36, 223, 255, 0.16);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(36, 223, 255, 0.24);
}

.language-switch button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
  filter: grayscale(0.55);
}

.language-switch button:disabled:hover {
  border-color: rgba(36, 223, 255, 0.36);
  background: rgba(1, 16, 33, 0.66);
  color: #dffaff;
  box-shadow: none;
}

.language-switch .flag {
  flex-basis: 16px;
  width: 16px;
  height: 11px;
}

.nav-toggle {
  grid-area: toggle;
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(36, 223, 255, 0.08);
  color: var(--aqua);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  padding: 58px 34px 42px;
}

.hero-bg,
.hero-bg img,
.terrain-mesh,
.laser-sweep,
.point-cloud {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.02) contrast(1.08) brightness(0.82);
  transform: scale(1.01);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(36, 223, 255, 0.16), transparent 22%),
    radial-gradient(circle at 78% 48%, rgba(0, 120, 210, 0.18), transparent 28%),
    linear-gradient(90deg, rgba(1, 10, 22, 0.92) 0%, rgba(3, 16, 33, 0.58) 42%, rgba(3, 16, 33, 0.14) 100%),
    linear-gradient(0deg, rgba(3, 16, 33, 0.91) 0%, transparent 46%);
}

.point-cloud {
  z-index: 2;
  opacity: 0.28;
}

.terrain-mesh {
  z-index: 3;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(0, 213, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 213, 255, 0.12) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(90deg, #000 0%, #000 54%, transparent 88%);
}

.laser-sweep {
  z-index: 4;
  width: 16%;
  background: linear-gradient(90deg, transparent, rgba(0, 213, 255, 0.12), transparent);
  transform: translateX(-120%);
  animation: sweep 7s linear infinite;
}

.achievement-strip {
  position: absolute;
  top: 12px;
  right: 34px;
  left: 34px;
  z-index: 12;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.achievement-bottom {
  display: grid;
  grid-template-columns: 1.05fr 1.2fr repeat(6, minmax(0, 0.86fr));
  gap: 5px;
}

.achievement-badge {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
  min-height: 34px;
  border: 1px solid rgba(36, 223, 255, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(1, 16, 33, 0.86), rgba(4, 49, 78, 0.54)),
    rgba(1, 10, 22, 0.72);
  box-shadow:
    inset 0 0 0 1px rgba(185, 246, 255, 0.08),
    0 0 18px rgba(36, 223, 255, 0.12);
  padding: 5px 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.achievement-badge svg {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(36, 223, 255, 0.65));
  transition: stroke 0.2s ease, filter 0.2s ease, transform 0.2s ease;
}

.achievement-badge span {
  overflow: hidden;
  color: var(--aqua);
  font-size: 9px;
  font-weight: 950;
  line-height: 1.1;
  text-transform: uppercase;
  transition: color 0.2s ease, text-shadow 0.2s ease, font-weight 0.2s ease;
}

.achievement-badge:hover {
  border-color: rgba(185, 246, 255, 1);
  background:
    linear-gradient(135deg, rgba(3, 34, 62, 0.94), rgba(8, 86, 122, 0.66)),
    rgba(1, 10, 22, 0.82);
  box-shadow:
    inset 0 0 0 1px rgba(185, 246, 255, 0.24),
    0 0 0 1px rgba(36, 223, 255, 0.34),
    0 0 26px rgba(36, 223, 255, 0.42);
  transform: translateY(-1px);
}

.achievement-badge:hover svg {
  stroke: #b9f6ff;
  filter:
    drop-shadow(0 0 8px rgba(185, 246, 255, 0.92))
    drop-shadow(0 0 14px rgba(36, 223, 255, 0.74));
  transform: scale(1.06);
}

.achievement-badge:hover span,
.achievement-badge:hover strong {
  color: #ffffff;
  font-weight: 950;
  text-shadow:
    0 0 8px rgba(185, 246, 255, 0.72),
    0 0 16px rgba(36, 223, 255, 0.46);
}

.anniversary-badge strong {
  color: var(--aqua);
  font-size: 25px;
  line-height: 0.9;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.anniversary-badge span {
  color: #f7fcff;
  font-size: 9px;
}

.country-badge {
  justify-content: center;
}

.country-label {
  justify-content: center;
}

.country-label span {
  color: #ffffff;
  text-align: center;
}

.flag {
  position: relative;
  flex: 0 0 24px;
  width: 24px;
  height: 16px;
  overflow: hidden;
  border: 1px solid rgba(185, 246, 255, 0.58);
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(36, 223, 255, 0.22);
  transition: filter 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.achievement-badge:hover .flag {
  filter: saturate(1.25) brightness(1.18);
  box-shadow:
    0 0 10px rgba(185, 246, 255, 0.75),
    0 0 18px rgba(36, 223, 255, 0.55);
  transform: scale(1.05);
}

.flag-ro {
  background: linear-gradient(90deg, #002b7f 0 33.33%, #fcd116 33.33% 66.66%, #ce1126 66.66%);
}

.flag-mk {
  background:
    radial-gradient(circle, #f8d616 0 18%, transparent 19%),
    linear-gradient(24deg, transparent 46%, #f8d616 47% 53%, transparent 54%),
    linear-gradient(74deg, transparent 46%, #f8d616 47% 53%, transparent 54%),
    linear-gradient(114deg, transparent 46%, #f8d616 47% 53%, transparent 54%),
    linear-gradient(156deg, transparent 46%, #f8d616 47% 53%, transparent 54%),
    #d20000;
}

.flag-ge {
  background:
    linear-gradient(90deg, transparent 0 42%, #ff0000 42% 58%, transparent 58%),
    linear-gradient(0deg, transparent 0 38%, #ff0000 38% 62%, transparent 62%),
    #fff;
}

.flag-ge::before,
.flag-ge::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ff0000;
  box-shadow: 17px 0 0 #ff0000, 0 10px 0 #ff0000, 17px 10px 0 #ff0000;
  left: 4px;
  top: 3px;
}

.flag-gb {
  background:
    linear-gradient(27deg, transparent 42%, #fff 42% 48%, #c8102e 48% 53%, #fff 53% 59%, transparent 59%),
    linear-gradient(153deg, transparent 42%, #fff 42% 48%, #c8102e 48% 53%, #fff 53% 59%, transparent 59%),
    linear-gradient(90deg, transparent 0 39%, #fff 39% 45%, #c8102e 45% 55%, #fff 55% 61%, transparent 61%),
    linear-gradient(0deg, transparent 0 35%, #fff 35% 42%, #c8102e 42% 58%, #fff 58% 65%, transparent 65%),
    #012169;
}

.flag-hu {
  background: linear-gradient(180deg, #ce2939 0 33.33%, #fff 33.33% 66.66%, #477050 66.66%);
}

.flag-nl {
  background: linear-gradient(180deg, #ae1c28 0 33.33%, #fff 33.33% 66.66%, #21468b 66.66%);
}

@keyframes sweep {
  to {
    transform: translateX(740%);
  }
}

.hero-grid {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 30px;
  align-items: end;
  min-height: 536px;
  padding-top: 78px;
  min-width: 0;
}

.mockup-panel {
  display: grid;
  gap: 10px;
  align-self: center;
}

.service-window {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(88px, 7vw, 106px);
  overflow: hidden;
  border: 1px solid rgba(36, 223, 255, 0.42);
  border-radius: 8px;
  background-position: center;
  background-size: cover;
  color: var(--aqua);
  padding: 14px;
  box-shadow:
    0 0 0 1px rgba(185, 246, 255, 0.08),
    0 12px 34px rgba(0, 0, 0, 0.3),
    0 0 22px rgba(36, 223, 255, 0.1);
  transition: transform 0.2s ease, border-color 0.2s ease, border-width 0.2s ease, box-shadow 0.2s ease;
}

.service-window::before,
.service-window::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.service-window::before {
  background:
    linear-gradient(180deg, rgba(1, 10, 22, 0.1), rgba(1, 10, 22, 0.82)),
    linear-gradient(90deg, rgba(0, 220, 255, 0.12), transparent 58%);
}

.service-window::after {
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(36, 223, 255, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 223, 255, 0.11) 1px, transparent 1px);
  background-size: 22px 22px;
}

.service-window:hover {
  transform: translateX(-7px) scale(1.05);
  border-width: 2px;
  border-color: rgba(185, 246, 255, 1);
  box-shadow:
    0 0 0 2px rgba(36, 223, 255, 0.2),
    0 16px 42px rgba(0, 0, 0, 0.34),
    0 0 42px rgba(36, 223, 255, 0.34);
}

.service-window span,
.service-window small {
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.75);
}

.service-window span {
  color: #91f8ff;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.05;
}

.service-window small {
  margin-top: 5px;
  color: #32e5ff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.window-topografie {
  background-image: url("assets/images/topografie_santier.png");
}

.window-cadastru {
  background-image: url("assets/images/cadastru.png");
}

.window-drone {
  background-image: url("assets/images/Masuratori GPS.png");
}

.window-scanare {
  background-image: url("assets/images/scanare_laser.png");
}

.window-monitorizare {
  background-image: url("assets/images/urmarire_automata.png");
}

.mockup-panel img {
  width: 100%;
  height: clamp(106px, 8.3vw, 124px);
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(36, 223, 255, 0.38);
  border-radius: 8px;
  background: rgba(1, 10, 22, 0.88);
  box-shadow:
    0 0 0 1px rgba(185, 246, 255, 0.08),
    0 12px 34px rgba(0, 0, 0, 0.3),
    0 0 22px rgba(36, 223, 255, 0.1);
}

.hero-copy {
  min-width: 0;
  max-width: 100%;
}

h1 {
  max-width: 860px;
  margin-bottom: 16px;
  font-size: clamp(54px, 5.3vw, 82px);
  line-height: 0.92;
  letter-spacing: 0;
  overflow-wrap: normal;
  background: linear-gradient(90deg, #ffffff 0%, #b9f6ff 44%, #35dfff 74%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 34px rgba(36, 223, 255, 0.12);
}

.lead {
  max-width: 820px;
  margin-bottom: 10px;
  color: #f1f7fd;
  font-size: clamp(15px, 1.45vw, 21px);
  font-weight: 950;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.sublead {
  max-width: 640px;
  color: #b7dbea;
  font-size: 18px;
  overflow-wrap: anywhere;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 8px;
  font-weight: 950;
  padding: 12px 18px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

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

.button.primary {
  border: 1px solid rgba(185, 246, 255, 0.92);
  background: linear-gradient(135deg, var(--aqua), var(--cyan));
  color: var(--navy);
  box-shadow: 0 20px 46px rgba(36, 223, 255, 0.24);
}

.button.secondary {
  border: 1px solid rgba(0, 213, 255, 0.48);
  background: rgba(0, 213, 255, 0.08);
  color: #f5fbff;
}

.contact-page {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  padding: 74px 34px 58px;
  background: #03101f;
}

.contact-bg {
  position: absolute;
  inset: 0;
  background:
    var(--window-bg-fade),
    var(--window-bg-glow),
    url("assets/images/hero-command-generated.png") top center / cover;
  filter: saturate(1.08) contrast(1.1) brightness(0.78);
}

.contact-page::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(36, 223, 255, 0.2), transparent 24%),
    radial-gradient(circle at 76% 56%, rgba(0, 111, 188, 0.2), transparent 28%),
    linear-gradient(0deg, rgba(1, 10, 22, 0.9), transparent 54%);
  pointer-events: none;
}

.contact-layout {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 34px;
  align-items: center;
  min-height: 520px;
}

.contact-copy {
  max-width: 650px;
}

.contact-kicker {
  display: inline-flex;
  margin-bottom: 18px;
  border: 1px solid rgba(36, 223, 255, 0.42);
  border-radius: 999px;
  background: rgba(1, 16, 33, 0.64);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 950;
  padding: 7px 11px;
  text-transform: uppercase;
}

.contact-copy h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(42px, 5vw, 70px);
}

.contact-copy p {
  max-width: 620px;
  color: #c6e7f2;
  font-size: 18px;
}

.contact-actions-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.contact-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(36, 223, 255, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(1, 16, 33, 0.94), rgba(4, 49, 78, 0.68)),
    rgba(1, 10, 22, 0.9);
  box-shadow:
    inset 0 0 0 1px rgba(185, 246, 255, 0.08),
    0 0 22px rgba(36, 223, 255, 0.1);
  min-height: 122px;
  padding: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.contact-card::before,
.contact-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.contact-card::before {
  background:
    radial-gradient(circle at 18% 18%, rgba(36, 223, 255, 0.16), transparent 26%),
    linear-gradient(90deg, rgba(0, 220, 255, 0.14), transparent 62%);
}

.contact-card::after {
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(36, 223, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 223, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

.contact-card:hover {
  border-color: rgba(185, 246, 255, 1);
  box-shadow:
    inset 0 0 0 1px rgba(185, 246, 255, 0.24),
    0 0 0 1px rgba(36, 223, 255, 0.28),
    0 0 28px rgba(36, 223, 255, 0.36);
  transform: translateY(-2px);
}

.contact-card.wide {
  grid-column: 1 / -1;
}

.contact-card span {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 8px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.contact-card strong {
  position: relative;
  z-index: 1;
  display: block;
  color: #ffffff;
  font-size: 20px;
  line-height: 1.15;
}

.contact-card a,
.contact-card p {
  position: relative;
  z-index: 1;
  display: block;
  margin: 8px 0 0;
  color: var(--aqua);
  font-size: 14px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.contact-card.privacy-note {
  min-height: 0;
}

.contact-card.privacy-note p {
  color: #c6e7f2;
  font-weight: 760;
  line-height: 1.5;
}

.portfolio-page {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  padding: 54px 34px 46px;
  background: #03101f;
}

.portfolio-bg {
  position: absolute;
  inset: 0;
  background:
    var(--window-bg-fade),
    var(--window-bg-glow),
    url("assets/images/portofoliu-topocadline.png") top center / 100% auto no-repeat,
    #03101f;
  filter: saturate(1.08) contrast(1.1) brightness(0.72);
}

.portfolio-page::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(36, 223, 255, 0.2), transparent 24%),
    radial-gradient(circle at 82% 46%, rgba(0, 111, 188, 0.18), transparent 28%),
    linear-gradient(0deg, rgba(1, 10, 22, 0.9), transparent 58%);
  pointer-events: none;
}

.portfolio-layout {
  position: relative;
  z-index: 8;
  display: grid;
  gap: 22px;
}

.portfolio-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 28px;
  align-items: end;
}

.portfolio-intro > .contact-kicker,
.portfolio-intro > h1,
.portfolio-intro > p {
  grid-column: 1;
}

.portfolio-intro > .contact-kicker {
  grid-row: 1;
}

.portfolio-intro h1 {
  grid-row: 2;
  max-width: 720px;
  margin-bottom: 14px;
  font-size: clamp(42px, 5vw, 68px);
}

.portfolio-intro p {
  max-width: 680px;
  margin: 0;
  color: #c6e7f2;
  font-size: 18px;
  line-height: 1.45;
  text-indent: 34px;
}

.portfolio-metrics {
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: end;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.portfolio-metrics article {
  min-height: 78px;
  border: 1px solid rgba(36, 223, 255, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(1, 16, 33, 0.88), rgba(4, 49, 78, 0.54)),
    rgba(1, 10, 22, 0.76);
  padding: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.portfolio-metrics article:hover {
  border-color: rgba(185, 246, 255, 1);
  background:
    linear-gradient(135deg, rgba(3, 34, 62, 0.94), rgba(8, 86, 122, 0.66)),
    rgba(1, 10, 22, 0.82);
  box-shadow:
    inset 0 0 0 1px rgba(185, 246, 255, 0.24),
    0 0 0 1px rgba(36, 223, 255, 0.34),
    0 0 26px rgba(36, 223, 255, 0.42);
  transform: translateY(-2px);
}

.portfolio-metrics strong,
.portfolio-metrics span {
  display: block;
}

.portfolio-metrics strong {
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.portfolio-metrics span {
  margin-top: 7px;
  color: var(--aqua);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.portfolio-metrics article:hover strong,
.portfolio-metrics article:hover span {
  color: #ffffff;
  text-shadow:
    0 0 8px rgba(185, 246, 255, 0.72),
    0 0 16px rgba(36, 223, 255, 0.46);
}

.portfolio-grid-modern {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.portfolio-tile {
  position: relative;
  isolation: isolate;
  min-height: 178px;
  overflow: hidden;
  border: 1px solid rgba(36, 223, 255, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(1, 16, 33, 0.94), rgba(4, 49, 78, 0.68)),
    rgba(1, 10, 22, 0.9);
  box-shadow:
    inset 0 0 0 1px rgba(185, 246, 255, 0.08),
    0 0 22px rgba(36, 223, 255, 0.1);
  padding: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.portfolio-tile::before,
.portfolio-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.portfolio-tile::before {
  background:
    radial-gradient(circle at 18% 18%, rgba(36, 223, 255, 0.16), transparent 26%),
    linear-gradient(90deg, rgba(0, 220, 255, 0.14), transparent 62%);
}

.portfolio-tile::after {
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(36, 223, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 223, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

.portfolio-tile:hover {
  border-color: rgba(185, 246, 255, 1);
  box-shadow:
    inset 0 0 0 1px rgba(185, 246, 255, 0.24),
    0 0 0 1px rgba(36, 223, 255, 0.28),
    0 0 28px rgba(36, 223, 255, 0.36);
  transform: translateY(-2px);
}

.portfolio-tile span,
.portfolio-tile strong,
.portfolio-tile p,
.portfolio-work {
  position: relative;
  z-index: 1;
}

.portfolio-tile > span {
  display: flex;
  width: fit-content;
  margin-bottom: 10px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(36, 223, 255, 0.42);
}

.portfolio-tile strong {
  display: block;
  color: #ffffff;
  font-size: 19px;
  line-height: 1.08;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.82);
}

.portfolio-tile > strong {
  margin-bottom: 10px;
}

.client-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin-bottom: 10px;
}

.client-link:hover strong {
  color: var(--aqua);
  text-shadow:
    0 0 10px rgba(185, 246, 255, 0.52),
    0 2px 14px rgba(0, 0, 0, 0.82);
}

.client-logo {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  object-fit: contain;
  border: 1px solid rgba(185, 246, 255, 0.42);
  border-radius: 8px;
  background: rgba(247, 252, 255, 0.92);
  padding: 4px;
  box-shadow: 0 0 18px rgba(36, 223, 255, 0.18);
}

.portfolio-tile p {
  margin: 8px 0 0;
  color: #bcecf7;
  font-size: 13px;
  line-height: 1.32;
}

.portfolio-work {
  display: grid;
  gap: 7px;
  margin-top: 0;
}

.portfolio-work span {
  position: relative;
  display: block;
  margin: 0;
  padding-left: 13px;
  color: #bcecf7;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.34;
  text-shadow: none;
  text-transform: none;
}

.portfolio-work span::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(36, 223, 255, 0.7);
}

.gallery-page {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  padding: 54px 34px 46px;
  background: #03101f;
}

.gallery-bg {
  position: absolute;
  inset: 0;
  background:
    var(--window-bg-fade),
    var(--window-bg-glow),
    url("assets/images/galerie.png") top center / 100% auto no-repeat,
    #03101f;
  filter: saturate(1.08) contrast(1.1) brightness(0.7);
}

.gallery-page::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 18%, rgba(36, 223, 255, 0.2), transparent 24%),
    radial-gradient(circle at 82% 42%, rgba(0, 111, 188, 0.2), transparent 28%),
    linear-gradient(0deg, rgba(1, 10, 22, 0.92), transparent 58%);
  pointer-events: none;
}

.gallery-layout {
  position: relative;
  z-index: 8;
  display: grid;
  gap: 18px;
}

.gallery-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: end;
}

.gallery-intro {
  max-width: 780px;
}

.gallery-metrics {
  align-self: end;
}

.gallery-intro h1 {
  margin-bottom: 14px;
  font-size: clamp(42px, 5vw, 68px);
}

.gallery-intro p {
  color: #c6e7f2;
  font-size: 18px;
  text-indent: 34px;
}

.gallery-grid-modern {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: clamp(70px, 9vw, 145px);
}

.gallery-card {
  min-width: 0;
}

.gallery-card button {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 2px solid rgba(36, 223, 255, 0.72);
  border-radius: 8px;
  background: rgba(1, 10, 22, 0.76);
  color: var(--aqua);
  cursor: pointer;
  font: inherit;
  padding: 12px;
  text-align: left;
  box-shadow:
    inset 0 0 0 1px rgba(185, 246, 255, 0.08),
    0 0 22px rgba(36, 223, 255, 0.1);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.gallery-card button::before,
.gallery-card button::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.gallery-card button::before {
  background:
    linear-gradient(180deg, rgba(1, 10, 22, 0.04), rgba(1, 10, 22, 0.88)),
    linear-gradient(90deg, rgba(0, 220, 255, 0.12), transparent 62%);
}

.gallery-card button::after {
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(36, 223, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 223, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

.gallery-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.1) brightness(0.76);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.gallery-card strong {
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
}

.gallery-card strong {
  color: #ffffff;
  font-size: 15px;
  line-height: 1.12;
}

.gallery-card button:hover {
  border-color: rgba(185, 246, 255, 1);
  box-shadow:
    inset 0 0 0 1px rgba(185, 246, 255, 0.24),
    0 0 0 1px rgba(36, 223, 255, 0.28),
    0 0 28px rgba(36, 223, 255, 0.38);
  transform: translateY(-2px);
}

.gallery-card button:hover img {
  filter: saturate(1.02) contrast(1.15) brightness(0.92);
  transform: scale(1.04);
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  background: transparent;
  padding: 0;
}

.gallery-lightbox.is-open {
  display: flex;
}

.gallery-lightbox img {
  width: auto;
  height: auto;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 88px);
  object-fit: contain;
  border: 20px solid rgba(1, 10, 22, 0.92);
  border-radius: 8px;
  background: rgba(1, 10, 22, 0.92);
  box-shadow:
    0 0 0 1px rgba(185, 246, 255, 0.12),
    0 0 42px rgba(36, 223, 255, 0.28);
}

.gallery-lightbox strong {
  max-width: calc(100vw - 40px);
  border: 1px solid rgba(36, 223, 255, 0.36);
  border-radius: 8px;
  background: rgba(1, 16, 33, 0.84);
  color: #ffffff;
  font-size: 15px;
  padding: 8px 12px;
  text-align: center;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
}

.gallery-close {
  display: none;
  position: absolute;
  top: 22px;
  right: 22px;
  border: 1px solid rgba(185, 246, 255, 0.72);
  border-radius: 8px;
  background: rgba(1, 16, 33, 0.84);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 950;
  padding: 10px 12px;
  text-transform: uppercase;
}

.cadastru-page {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  padding: 54px 34px 46px;
  background: #03101f;
}

.cadastru-bg {
  position: absolute;
  inset: 0;
  background:
    var(--window-bg-fade),
    var(--window-bg-glow),
    url("assets/images/cadastru.png") center 18% / 100% auto no-repeat,
    #03101f;
  filter: saturate(1.08) contrast(1.12) brightness(0.72);
  transform: none;
}

.cadastru-page::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 18%, rgba(36, 223, 255, 0.22), transparent 24%),
    radial-gradient(circle at 82% 46%, rgba(0, 111, 188, 0.2), transparent 28%),
    linear-gradient(0deg, rgba(1, 10, 22, 0.94), transparent 58%);
  pointer-events: none;
}

.cadastru-layout {
  position: relative;
  z-index: 8;
  display: grid;
  gap: 20px;
}

.cadastru-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: end;
}

.cadastru-metrics {
  align-self: end;
}

.cadastru-copy {
  max-width: 760px;
}

.cadastru-copy h1 {
  max-width: 820px;
  margin-bottom: 14px;
  font-size: clamp(42px, 5vw, 68px);
}

.cadastru-copy p {
  max-width: 690px;
  color: #c6e7f2;
  font-size: 18px;
}

.cadastru-services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.cadastru-services article,
.cadastru-flow article {
  border: 1px solid rgba(36, 223, 255, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(1, 16, 33, 0.88), rgba(4, 49, 78, 0.54)),
    rgba(1, 10, 22, 0.76);
  box-shadow:
    inset 0 0 0 1px rgba(185, 246, 255, 0.08),
    0 0 22px rgba(36, 223, 255, 0.1);
  padding: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.cadastru-services article:hover,
.cadastru-flow article:hover {
  border-color: rgba(185, 246, 255, 1);
  box-shadow:
    inset 0 0 0 1px rgba(185, 246, 255, 0.24),
    0 0 0 1px rgba(36, 223, 255, 0.28),
    0 0 28px rgba(36, 223, 255, 0.34);
  transform: translateY(-2px);
}

.cadastru-services span {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 950;
}

.cadastru-services strong,
.cadastru-flow strong {
  display: block;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.12;
}

.cadastru-services p,
.cadastru-flow span {
  display: block;
  margin: 9px 0 0;
  color: #bcecf7;
  font-size: 13px;
  line-height: 1.34;
}

.cadastru-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  border-top: 1px solid rgba(36, 223, 255, 0.28);
  padding-top: 16px;
}

.topografie-page {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  padding: 54px 34px 46px;
  background: #03101f;
}

.topografie-bg {
  position: absolute;
  inset: 0;
  background:
    var(--window-bg-fade),
    var(--window-bg-glow),
    url("assets/images/topografie_santier.png") center 18% / 100% auto no-repeat,
    #03101f;
  filter: saturate(1.08) contrast(1.12) brightness(0.7);
  transform: none;
}

.topografie-page::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 18%, rgba(36, 223, 255, 0.22), transparent 24%),
    radial-gradient(circle at 82% 46%, rgba(0, 111, 188, 0.2), transparent 28%),
    linear-gradient(0deg, rgba(1, 10, 22, 0.94), transparent 58%);
  pointer-events: none;
}

.topografie-layout {
  position: relative;
  z-index: 8;
  display: grid;
  gap: 20px;
}

.topografie-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: end;
}

.topografie-metrics {
  align-self: end;
}

.topografie-copy {
  max-width: 780px;
}

.topografie-copy h1 {
  max-width: 840px;
  margin-bottom: 14px;
  font-size: clamp(42px, 5vw, 68px);
}

.topografie-copy p {
  max-width: 700px;
  color: #c6e7f2;
  font-size: 18px;
}

.topografie-services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.topografie-services article,
.topografie-flow article {
  border: 1px solid rgba(36, 223, 255, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(1, 16, 33, 0.88), rgba(4, 49, 78, 0.54)),
    rgba(1, 10, 22, 0.76);
  box-shadow:
    inset 0 0 0 1px rgba(185, 246, 255, 0.08),
    0 0 22px rgba(36, 223, 255, 0.1);
  padding: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.topografie-services article:hover,
.topografie-flow article:hover {
  border-color: rgba(185, 246, 255, 1);
  box-shadow:
    inset 0 0 0 1px rgba(185, 246, 255, 0.24),
    0 0 0 1px rgba(36, 223, 255, 0.28),
    0 0 28px rgba(36, 223, 255, 0.34);
  transform: translateY(-2px);
}

.topografie-services span {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 950;
}

.topografie-services strong,
.topografie-flow strong {
  display: block;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.12;
}

.topografie-services p,
.topografie-flow span {
  display: block;
  margin: 9px 0 0;
  color: #bcecf7;
  font-size: 13px;
  line-height: 1.34;
}

.topografie-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  border-top: 1px solid rgba(36, 223, 255, 0.28);
  padding-top: 16px;
}

.masuratori-page {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  padding: 54px 34px 46px;
  background: #03101f;
}

.masuratori-bg {
  position: absolute;
  inset: 0;
  background:
    var(--window-bg-fade),
    var(--window-bg-glow),
    url("assets/images/scanare_laser.png") center / cover;
  filter: saturate(1.08) contrast(1.12) brightness(0.7);
  transform: scale(1.04);
}

.masuratori-drone-page .masuratori-bg {
  background:
    var(--window-bg-fade),
    var(--window-bg-glow),
    url("assets/images/scanare_laser.png") center 18% / 100% auto no-repeat,
    #03101f;
  filter: saturate(1.08) contrast(1.12) brightness(0.72);
  transform: none;
}

.masuratori-classice-page .masuratori-bg {
  background:
    var(--window-bg-fade),
    var(--window-bg-glow),
    url("assets/images/Masuratori GPS.png") center 18% / 100% auto no-repeat,
    #03101f;
  transform: none;
}

.urmarire-automata-page .masuratori-bg {
  background:
    var(--window-bg-fade),
    var(--window-bg-glow),
    url("assets/images/urmarire_automata.png") center 18% / 100% auto no-repeat,
    #03101f;
  transform: none;
}

.masuratori-page::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 18%, rgba(36, 223, 255, 0.22), transparent 24%),
    radial-gradient(circle at 82% 46%, rgba(0, 111, 188, 0.2), transparent 28%),
    linear-gradient(0deg, rgba(1, 10, 22, 0.94), transparent 58%);
  pointer-events: none;
}

.masuratori-layout {
  position: relative;
  z-index: 8;
  display: grid;
  gap: 20px;
}

.masuratori-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: end;
}

.urmarire-automata-page .masuratori-hero {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.urmarire-automata-page .masuratori-copy {
  max-width: 760px;
}

.masuratori-copy {
  max-width: 780px;
}

.masuratori-copy h1 {
  max-width: 840px;
  margin-bottom: 14px;
  font-size: clamp(42px, 5vw, 68px);
}

.masuratori-copy p {
  max-width: 700px;
  color: #c6e7f2;
  font-size: 18px;
}

.masuratori-services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.masuratori-services article,
.masuratori-flow article {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(36, 223, 255, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(1, 16, 33, 0.88), rgba(4, 49, 78, 0.54)),
    rgba(1, 10, 22, 0.76);
  box-shadow:
    inset 0 0 0 1px rgba(185, 246, 255, 0.08),
    0 0 22px rgba(36, 223, 255, 0.1);
  padding: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.masuratori-drone-page .masuratori-services article::before,
.masuratori-drone-page .masuratori-services article::after,
.masuratori-drone-page .masuratori-flow article::before,
.masuratori-drone-page .masuratori-flow article::after,
.urmarire-automata-page .masuratori-services article::before,
.urmarire-automata-page .masuratori-services article::after,
.urmarire-automata-page .masuratori-flow article::before,
.urmarire-automata-page .masuratori-flow article::after,
.masuratori-classice-page .masuratori-services article::before,
.masuratori-classice-page .masuratori-services article::after,
.masuratori-classice-page .masuratori-flow article::before,
.masuratori-classice-page .masuratori-flow article::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.masuratori-drone-page .masuratori-services article::before,
.masuratori-drone-page .masuratori-flow article::before,
.urmarire-automata-page .masuratori-services article::before,
.urmarire-automata-page .masuratori-flow article::before,
.masuratori-classice-page .masuratori-services article::before,
.masuratori-classice-page .masuratori-flow article::before {
  background:
    radial-gradient(circle at 18% 18%, rgba(36, 223, 255, 0.16), transparent 26%),
    linear-gradient(90deg, rgba(0, 220, 255, 0.14), transparent 62%);
}

.masuratori-drone-page .masuratori-services article::after,
.masuratori-drone-page .masuratori-flow article::after,
.urmarire-automata-page .masuratori-services article::after,
.urmarire-automata-page .masuratori-flow article::after,
.masuratori-classice-page .masuratori-services article::after,
.masuratori-classice-page .masuratori-flow article::after {
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(36, 223, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 223, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

.masuratori-services article:hover,
.masuratori-flow article:hover {
  border-color: rgba(185, 246, 255, 1);
  box-shadow:
    inset 0 0 0 1px rgba(185, 246, 255, 0.24),
    0 0 0 1px rgba(36, 223, 255, 0.28),
    0 0 28px rgba(36, 223, 255, 0.34);
  transform: translateY(-2px);
}

.masuratori-services span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 950;
}

.masuratori-services strong,
.masuratori-flow strong {
  position: relative;
  z-index: 1;
  display: block;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.12;
}

.masuratori-services p,
.masuratori-flow span {
  position: relative;
  z-index: 1;
  display: block;
  margin: 9px 0 0;
  color: #bcecf7;
  font-size: 13px;
  line-height: 1.34;
}

.masuratori-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  border-top: 1px solid rgba(36, 223, 255, 0.28);
  padding-top: 16px;
}

@media (max-width: 1240px) {
  .page-shell {
    width: min(88vw, 1080px);
  }

  .site-header {
    grid-template-columns: max-content minmax(0, 1fr) max-content;
    grid-template-areas:
      "brand . languages"
      "nav nav nav";
    grid-template-rows: 48px 72px;
    height: 132px;
    padding-right: 26px;
    padding-left: 26px;
  }

  .main-nav {
    justify-self: center;
  }
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: max-content max-content minmax(0, 1fr);
    grid-template-areas: "brand toggle languages";
    grid-template-rows: 1fr;
    height: 92px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 92px;
    right: 16px;
    left: 16px;
    display: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
      linear-gradient(180deg, rgba(1, 14, 29, 0.98), rgba(4, 38, 64, 0.98)),
      var(--navy);
    box-shadow: var(--shadow);
    grid-template-columns: 1fr;
    justify-content: stretch;
    justify-items: stretch;
    padding: 10px;
  }

  .main-nav.is-open {
    display: grid;
    gap: 0;
  }

  .nav-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    width: 100%;
    justify-self: stretch;
  }

  .main-nav a {
    display: flex;
    width: 100%;
    padding: 13px 12px;
  }
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
  }

  .hero-grid,
  .contact-layout,
  .portfolio-intro,
  .gallery-hero,
  .cadastru-hero,
  .topografie-hero,
  .masuratori-hero {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    align-items: start;
    min-height: auto;
  }

  .hero-copy {
    max-width: 350px;
  }

  .mockup-panel {
    max-width: 360px;
  }

  .portfolio-grid-modern {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-intro > .contact-kicker,
  .portfolio-intro > h1,
  .portfolio-intro > p,
  .portfolio-intro > .portfolio-metrics {
    grid-column: auto;
    grid-row: auto;
  }

  .cadastru-services,
  .cadastru-flow,
  .topografie-services,
  .topografie-flow,
  .masuratori-services,
  .masuratori-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid-modern {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-panel,
  .portfolio-metrics {
    max-width: 560px;
  }
}

@media (max-width: 640px) {
  body {
    padding: 12px 0;
  }

  .page-shell {
    width: calc(100vw - 18px);
    border-radius: 18px;
  }

  .site-header {
    padding: 0 14px;
  }

  .brand-text small {
    display: none;
  }

  .language-switch button span {
    display: none;
  }

  .language-switch button {
    padding: 6px;
  }

  .hero,
  .contact-page,
  .portfolio-page,
  .gallery-page,
  .cadastru-page,
  .topografie-page,
  .masuratori-page {
    padding-right: 14px;
    padding-left: 14px;
  }

  .achievement-strip {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    margin-bottom: 22px;
  }

  .achievement-grid,
  .achievement-bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .country-label {
    grid-column: 1 / -1;
  }

  .hero-grid {
    padding-top: 0;
  }

  h1 {
    font-size: clamp(42px, 13vw, 54px);
    line-height: 0.96;
    max-width: 100%;
  }

  .lead {
    font-size: 15px;
    max-width: 100%;
  }

  .sublead {
    max-width: 100%;
  }

  .mockup-panel {
    width: 100%;
    min-width: 0;
  }

  .contact-panel,
  .portfolio-metrics {
    grid-template-columns: 1fr;
  }

  .portfolio-grid-modern,
  .gallery-grid-modern {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cadastru-services,
  .cadastru-flow,
  .topografie-services,
  .topografie-flow,
  .masuratori-services,
  .masuratori-flow {
    grid-template-columns: 1fr;
  }

}
