:root {
  --primary: #42a5f5;
  --primary-dark: #1e88e5;
  --secondary: #a78bfa;
  --secondary-dark: #8b5cf6;
  --dark-bg: #121212;
  --darker-bg: #0a0a0a;
  --card-bg: #1e1e1e;
  --text: #ffffff;
  --text-secondary: #bdbdbd;
  --blue-glow: rgba(66, 165, 245, 0.5);
  --purple-glow: rgba(149, 66, 245, 0.5);
  --violet-glow: rgba(167, 139, 250, 0.5);
}

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

html {
  overflow-y: scroll;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
}

html,
body {
  width: 100%;
  height: 100%;
  font-family: 'Roboto', sans-serif;
  background-color: var(--dark-bg);
  color: var(--text);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, var(--primary-dark), var(--secondary-dark));
}

.app {
  position: relative;
  min-height: 100vh;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  position: relative;
  z-index: 2;
}

.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--darker-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-container {
  margin-bottom: 30px;
  text-align: center;
  animation: fadeInUp 0.8s forwards;
}

.loading-logo {
  font-size: 3rem;
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}

.tagline {
  font-size: 1.2rem;
  color: var(--text-secondary);
}

.loading-bar-container {
  width: 300px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  animation: fadeIn 0.5s 0.3s forwards;
}

.loading-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: 2px;
  animation: loadingProgress 2s forwards;
}

.cursor-dot {
  position: fixed;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(66, 165, 245, 0.5);
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: width 0.3s, height 0.3s, border-color 0.3s, background-color 0.3s, transform 0.3s;
  transform: translate(-50%, -50%);
  display: none;
}

.cursor-dot.hover {
  width: 48px;
  height: 48px;
  border-color: rgba(66, 165, 245, 0.8);
  background-color: rgba(66, 165, 245, 0.1);
}

.cursor-dot.click {
  width: 16px;
  height: 16px;
  background-color: rgba(244, 143, 177, 0.5);
  border-color: transparent;
}

.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: var(--sb-w, 0px);
  padding: 20px 0;
  z-index: 100;
  background-color: rgba(8, 8, 12, 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

header.scrolled {
  padding: 15px 0;
  background-color: rgba(8, 8, 12, 0.96);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.logo a:hover {
  opacity: 0.85;
}

.logo-mark {
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
  mix-blend-mode: screen;
}

.logo-text {
  display: inline-block;
  font-size: 22px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1;
  vertical-align: middle;
  position: relative;
  top: 1px;
}

.desktop-nav {
  display: flex;
}

.desktop-nav ul {
  display: flex;
  list-style: none;
}

.desktop-nav ul li {
  margin-left: 40px;
}

.desktop-nav ul li:first-child {
  margin-left: 0;
}

.desktop-nav ul li a {
  position: relative;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 2px;
  transition: color 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
}

.header-content {
  gap: 32px;
}

@media (max-width: 1200px) {
  .desktop-nav ul li {
    margin-left: 24px;
  }

  .desktop-nav ul li a {
    letter-spacing: 1.5px;
  }
}

@media (max-width: 1050px) {
  .desktop-nav ul li {
    margin-left: 18px;
  }

  .desktop-nav ul li a {
    letter-spacing: 1px;
    font-size: 11.5px;
  }
}

.desktop-nav ul li a:hover {
  color: #ffffff;
}

.desktop-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.desktop-nav ul li a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
}

.menu-icon {
  width: 30px;
  height: 22px;
  position: relative;
}

.menu-icon span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: #ffffff;
  border-radius: 3px;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.menu-icon span:nth-child(1) {
  top: 0px;
}

.menu-icon span:nth-child(2) {
  top: 9px;
}

.menu-icon span:nth-child(3) {
  top: 18px;
}

.menu-icon.open span:nth-child(1) {
  top: 9px;
  transform: rotate(45deg);
}

.menu-icon.open span:nth-child(2) {
  opacity: 0;
}

.menu-icon.open span:nth-child(3) {
  top: 9px;
  transform: rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  top: 80px;
  left: 0;
  right: var(--sb-w, 0px);
  background-color: rgba(18, 18, 24, 0.95);
  backdrop-filter: blur(10px);
  padding: 20px;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
  z-index: 99;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav ul {
  list-style: none;
}

.mobile-nav ul li {
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav ul li a {
  display: block;
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
  padding: 10px 0;
  transition: transform 0.3s, color 0.3s;
  cursor: pointer;
}

.mobile-nav ul li a:hover {
  transform: translateX(10px);
  color: var(--secondary);
}

.btn {
  display: inline-block;
  padding: 16px 40px;
  background: linear-gradient(135deg, rgba(66, 165, 245, 0.14), rgba(167, 139, 250, 0.12));
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.5px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 20;
  isolation: isolate;
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(66, 165, 245, 0.55);
  box-shadow: 0 0 28px rgba(66, 165, 245, 0.25), 0 10px 28px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(66, 165, 245, 0.22), rgba(167, 139, 250, 0.18));
}

.btn-primary {
  position: relative;
  z-index: 30;
}

.btn:active {
  transform: translateY(0);
}

.btn-text {
  position: relative;
  z-index: 2;
}

.btn-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(66, 165, 245, 0.1), rgba(167, 139, 250, 0.1));
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 1;
}

.btn:hover .btn-glow {
  opacity: 1;
}

.btn-form {
  width: 100%;
  margin-top: 10px;
}

.btn-form:hover {
  background: rgba(66, 165, 245, 0.08);
}

.section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

.section-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.section-header {
  position: relative;
  text-align: center;
  margin-bottom: 60px;
  z-index: 2;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.gradient-text {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gradient-text-2 {
  background: linear-gradient(to right, var(--primary), #9c42f5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gradient-text-3 {
  background: linear-gradient(to right, #9c42f5, var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.title-underline {
  width: 80px;
  height: 4px;
  background: var(--primary);
  margin: 0 auto;
  border-radius: 2px;
}

.title-underline.blue {
  background: linear-gradient(to right, var(--primary), #64b5f6);
}

.title-underline.purple {
  background: linear-gradient(to right, #9c42f5, #b388ff);
}

.title-underline.pink {
  background: linear-gradient(to right, var(--secondary), var(--secondary-dark));
}

.section-content {
  position: relative;
  z-index: 2;
}

.hero {
  background-color: rgba(0, 0, 0, 1);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 150px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  background-color: rgba(0, 0, 0, 1);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-color: transparent !important;
}

.particles-container {
  opacity: 0.7 !important;
}

section {
  scroll-margin-top: 100px;
}

#o-nas,
#projekty,
#audyty,
#specjalizacja,
#wspolpraca,
#kontakt {
  scroll-margin-top: 100px;
}

.blob-container {
  display: none;
}

.hero-layout {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.hero-content {
  text-align: left;
  position: relative;
  z-index: 5;
}

.hero .title {
  font-size: 46px;
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 22px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.hero .subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 0 36px;
  line-height: 1.65;
}

/* === Hero mockup: terminal + KPI === */
.hero-mockup {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 520px;
  justify-self: end;
  width: 100%;
  perspective: 1400px;
  animation: heroMockupIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s backwards;
}

@keyframes heroMockupIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.mockup-terminal {
  background: rgba(8, 10, 16, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.7),
    0 0 36px rgba(66, 165, 245, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  backdrop-filter: blur(28px) saturate(1.3);
  -webkit-backdrop-filter: blur(28px) saturate(1.3);
  font-family: 'SF Mono', 'Menlo', 'Monaco', 'Consolas', 'Liberation Mono', monospace;
}

.terminal-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: rgba(18, 20, 28, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
  margin-left: 10px;
  font-size: 11.5px;
  color: rgba(200, 200, 210, 0.6);
  letter-spacing: 0.2px;
  font-family: 'SF Mono', 'Menlo', monospace;
}

.terminal-body {
  padding: 16px 18px 14px;
  font-size: 12.5px;
  line-height: 1.75;
  color: rgba(220, 224, 232, 0.9);
  max-height: 320px;
  overflow: hidden;
}

.term-line {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  animation: termLineIn 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.term-line:nth-child(1) { animation-delay: 0.4s; }
.term-line:nth-child(2) { animation-delay: 0.75s; }
.term-line:nth-child(3) { animation-delay: 1.05s; }
.term-line:nth-child(4) { animation-delay: 1.3s; }
.term-line:nth-child(5) { animation-delay: 1.55s; }
.term-line:nth-child(6) { animation-delay: 1.8s; }
.term-line:nth-child(7) { animation-delay: 2.05s; }
.term-line:nth-child(8) { animation-delay: 2.3s; }
.term-line:nth-child(9) { animation-delay: 2.6s; }
.term-line:nth-child(10) { animation-delay: 2.9s; }

@keyframes termLineIn {
  from { opacity: 0; transform: translateX(-4px); }
  to { opacity: 1; transform: translateX(0); }
}

.term-prompt {
  color: #42a5f5;
  font-weight: 600;
  margin-right: 6px;
}

.term-cmd {
  color: #e8e8ec;
}

.term-info {
  color: rgba(167, 139, 250, 0.85);
}

.term-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  margin-right: 8px;
  letter-spacing: 0.5px;
}

.term-tag.ok {
  background: rgba(40, 200, 100, 0.15);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.term-tag.warn {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.term-ok { color: rgba(220, 230, 224, 0.85); }
.term-warn { color: rgba(250, 230, 200, 0.9); }

.term-done {
  color: #90caf9;
  padding-top: 6px;
  margin-top: 4px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  font-weight: 500;
}

.term-cursor {
  opacity: 0;
  animation: termLineIn 0.4s ease 3.2s forwards;
  color: #42a5f5;
}

.term-blink {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: #42a5f5;
  vertical-align: middle;
  margin-left: 2px;
  animation: termBlink 1s step-end infinite;
}

@keyframes termBlink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

/* KPI cards */
.mockup-kpi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.kpi-card {
  padding: 14px 16px;
  background: rgba(12, 14, 22, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  backdrop-filter: blur(26px) saturate(1.3);
  -webkit-backdrop-filter: blur(26px) saturate(1.3);
  box-shadow: 0 12px 28px -14px rgba(0, 0, 0, 0.7);
  opacity: 0;
  animation: termLineIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.kpi-card:nth-of-type(1) { animation-delay: 3.1s; }
.kpi-card:nth-of-type(2) { animation-delay: 3.3s; }

.kpi-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(189, 189, 198, 0.7);
  margin-bottom: 6px;
}

.kpi-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.kpi-bar {
  position: relative;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.kpi-bar-fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), #60a5fa);
  border-radius: 3px;
  animation: kpiBarFill 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) 3.4s forwards;
}

.kpi-bar-fill.purple {
  background: linear-gradient(90deg, var(--secondary), #c084fc);
}

@keyframes kpiBarFill {
  from { width: 0; }
  to { width: var(--pct); }
}

.kpi-foot {
  font-size: 10.5px;
  color: rgba(155, 155, 165, 0.75);
  letter-spacing: 0.2px;
  font-family: 'Roboto', sans-serif;
}

@media (prefers-reduced-motion: reduce) {
  .hero-mockup,
  .term-line,
  .term-cursor,
  .kpi-card,
  .kpi-bar-fill {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .kpi-bar-fill { width: var(--pct) !important; }
  .term-blink { animation: none !important; opacity: 1; }
}

/* Desktop wide */
@media (min-width: 1200px) {
  .hero .title { font-size: 52px; }
}

/* Tablet / small desktop */
@media (max-width: 1100px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
    justify-items: center;
  }
  .hero-content { text-align: center; }
  .hero .subtitle { margin-left: auto; margin-right: auto; }
  .hero-mockup { justify-self: center; max-width: 560px; }
}

@media (max-width: 600px) {
  .mockup-terminal { font-size: 11.5px; }
  .terminal-body { padding: 12px 14px 10px; font-size: 11.5px; max-height: 280px; }
  .kpi-value { font-size: 22px; }
  .mockup-kpi { gap: 10px; }
  .kpi-card { padding: 12px 14px; }
}

.scroll-indicator {
  display: none !important;
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-container {
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  display: flex;
  justify-content: center;
}

.scroll-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  margin-top: 8px;
  animation: scrollAnimation 2s infinite;
}

.floating-code {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 34% 32% at 50% 50%, transparent 0%, transparent 55%, rgba(0,0,0,0.85) 85%, #000 100%);
  -webkit-mask-image: radial-gradient(ellipse 34% 32% at 50% 50%, transparent 0%, transparent 55%, rgba(0,0,0,0.85) 85%, #000 100%);
}

.code-snippet {
  position: absolute;
  color: rgba(255, 255, 255, 0.3);
  font-family: monospace;
  font-size: 16px;
  font-weight: 600;
  pointer-events: none;
  text-shadow: 0 0 5px rgba(66, 165, 245, 0.3);
}

.about {
  background-color: rgba(0, 0, 0, 1);
  position: relative;
}

.glow-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  filter: blur(70px);
}

.right-top {
  top: 20%;
  right: 10%;
  width: 30vw;
  height: 30vw;
  background: var(--blue-glow);
}

.left-bottom {
  bottom: 10%;
  left: 10%;
  width: 25vw;
  height: 25vw;
  background: var(--purple-glow);
}

.grid-lines {
  display: none !important;
  opacity: 0 !important;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background-size: 50px 50px;
  opacity: 0.5;
}

.about-content {
  max-width: 800px;
  margin: 0 auto 60px;
}

.about-paragraph {
  position: relative;
  padding-left: 20px;
  margin-bottom: 30px;
  opacity: 1;
  transform: translateY(0);
}

.highlight-line {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  border-radius: 3px;
}

.highlight-line.purple {
  background: linear-gradient(to bottom, #9c42f5, transparent);
}

.highlight-line.pink {
  background: linear-gradient(to bottom, var(--secondary), transparent);
}

.highlight-line.indigo {
  background: linear-gradient(to bottom, #3f51b5, transparent);
}

.about-paragraph p {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.7;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 60px;
  opacity: 1;
  transform: translateY(0);
}

.stat-card {
  background: rgba(30, 30, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(244, 143, 177, 0.3);
}

.stat-card h3 {
  font-size: 42px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 10px;
}

.stat-card p {
  color: var(--text-secondary);
}

.stat-underline {
  width: 40px;
  height: 3px;
  margin: 15px auto 0;
  transform: scaleX(0);
  transition: transform 0.3s;
}

.stat-card:hover .stat-underline {
  transform: scaleX(1);
}

.stat-underline.blue {
  background: var(--primary);
}

.stat-underline.purple {
  background: #9c42f5;
}

.stat-underline.pink {
  background: var(--secondary);
}

.specialization,
.offer,
.contact {
  background-color: rgba(0, 0, 0, 1);
}

.trust-bar {
  background: rgba(0, 0, 0, 0.95);
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
  z-index: 2;
}

.trust-items {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

.trust-item {
  color: var(--text-secondary);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.trust-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(66, 165, 245, 0.08);
  border: 1px solid rgba(66, 165, 245, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-icon i {
  color: var(--primary);
  font-size: 14px;
}

.spec-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.glow-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(156, 66, 245, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
  border-radius: 50%;
  filter: blur(50px);
}

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

.specialization-card {
  background: rgba(30, 30, 30, 0.6);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  opacity: 1;
  transform: translateY(0);
}

.specialization-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.specialization-card:hover .card-highlight {
  transform: scaleX(1);
}

.icon-container {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: rgba(30, 30, 30, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
  font-size: 28px;
  transition: transform 0.3s;
}

.specialization-card:hover .icon-container {
  transform: scale(1.1);
}

.icon-container.blue {
  color: var(--primary);
  box-shadow: 0 0 20px rgba(66, 165, 245, 0.2);
}

.icon-container.indigo {
  color: #3f51b5;
  box-shadow: 0 0 20px rgba(63, 81, 181, 0.2);
}

.icon-container.green {
  color: #4caf50;
  box-shadow: 0 0 20px rgba(76, 175, 80, 0.2);
}

.icon-container.purple {
  color: #9c42f5;
  box-shadow: 0 0 20px rgba(156, 66, 245, 0.2);
}

.icon-container.orange {
  color: #ff9800;
  box-shadow: 0 0 20px rgba(255, 152, 0, 0.2);
}

.icon-container.red {
  color: #f44336;
  box-shadow: 0 0 20px rgba(244, 67, 54, 0.2);
}

/* === Custom SVG icons for "Dlaczego Innovix" === */
.icon-container {
  overflow: visible;
}

.ix-icon {
  width: 42px;
  height: 42px;
  display: block;
  color: currentColor;
  filter: drop-shadow(0 0 10px currentColor);
  opacity: 0.95;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease;
}

.specialization-card:hover .ix-icon {
  transform: scale(1.08);
  filter: drop-shadow(0 0 18px currentColor);
}

/* Chip */
.ix-chip-core {
  transform-origin: 32px 32px;
  animation: ixChipCore 6s ease-in-out infinite;
}

.ix-chip-dot {
  transform-origin: 32px 32px;
  animation: ixChipPulse 1.8s ease-in-out infinite;
}

.ix-chip-pins line {
  stroke-dasharray: 6;
  stroke-dashoffset: 0;
  animation: ixChipFlow 2.4s linear infinite;
}

.ix-chip-pins line:nth-child(2n) { animation-delay: -0.6s; }
.ix-chip-pins line:nth-child(3n) { animation-delay: -1.2s; }

@keyframes ixChipCore {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

@keyframes ixChipPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

@keyframes ixChipFlow {
  from { stroke-dashoffset: 12; }
  to { stroke-dashoffset: 0; }
}

/* Flask */
.ix-flask-liquid {
  stroke-dasharray: 3 3;
  animation: ixFlaskWave 3s linear infinite;
}

.ix-bubble {
  transform-origin: center;
  animation: ixBubble 2.6s ease-in-out infinite;
}

.ix-bubble.ix-b1 { animation-delay: 0s; }
.ix-bubble.ix-b2 { animation-delay: 0.9s; }
.ix-bubble.ix-b3 { animation-delay: 1.7s; }

@keyframes ixFlaskWave {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: 12; }
}

@keyframes ixBubble {
  0% { transform: translateY(4px); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(-10px); opacity: 0; }
}

/* Report: draw-stroke checkmark */
.ix-report-check {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: ixCheckDraw 2.6s cubic-bezier(0.6, 0, 0.3, 1) infinite;
}

@keyframes ixCheckDraw {
  0% { stroke-dashoffset: 40; opacity: 0.3; }
  30% { stroke-dashoffset: 0; opacity: 1; }
  80% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 40; opacity: 0.3; }
}

/* EU nodes */
.ix-eu-node {
  transform-origin: center;
  transform-box: fill-box;
  animation: ixEuPulse 2.8s ease-in-out infinite;
}

.ix-eu-node.n1 { animation-delay: 0s; }
.ix-eu-node.n2 { animation-delay: 0.6s; }
.ix-eu-node.n3 { animation-delay: 1.2s; }
.ix-eu-node.n4 { animation-delay: 1.8s; }

.ix-eu-links line {
  stroke-dasharray: 4 4;
  animation: ixEuFlow 3s linear infinite;
}

@keyframes ixEuPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.6); opacity: 1; }
}

@keyframes ixEuFlow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -16; }
}

@media (prefers-reduced-motion: reduce) {
  .ix-chip-core,
  .ix-chip-dot,
  .ix-chip-pins line,
  .ix-flask-liquid,
  .ix-bubble,
  .ix-report-check,
  .ix-eu-node,
  .ix-eu-links line {
    animation: none !important;
  }
  .ix-report-check { stroke-dashoffset: 0; opacity: 1; }
  .ix-bubble { opacity: 0.7; }
}

.specialization-card h3 {
  font-size: 22px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 15px;
  min-height: calc(1.25em * 3);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.25;
}

.divider {
  width: 40px;
  height: 2px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  margin-bottom: 15px;
}

.specialization-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 15px;
}

.card-highlight {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 18%, var(--secondary) 82%, transparent 100%);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.5s ease;
}



.offer-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.offer-bg .bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.06;
}

.offer-bg .bg-shape.right-top {
  top: 5%;
  right: 5%;
  width: 350px;
  height: 350px;
  background: var(--primary);
  animation: float 20s ease-in-out infinite;
}

.offer-bg .bg-shape.left-bottom {
  bottom: 5%;
  left: 5%;
  width: 300px;
  height: 300px;
  background: var(--secondary);
  animation: float 16s ease-in-out infinite reverse;
}

.offer-models {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.offer-card {
  position: relative;
  opacity: 1;
  transform: translateY(0);
}

.offer-card-inner {
  background: rgba(20, 20, 30, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  overflow: hidden;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.offer-card:hover .offer-card-inner {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.1);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: rgba(66, 165, 245, 0.1);
  border: 1px solid rgba(66, 165, 245, 0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--primary);
  font-size: 22px;
  transition: transform 0.3s ease;
}

.offer-card:hover .card-icon {
  transform: scale(1.1);
}

.card-icon.purple {
  background: rgba(167, 139, 250, 0.1);
  border-color: rgba(167, 139, 250, 0.15);
  color: var(--secondary);
}

.offer-title {
  font-size: 22px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 16px;
  color: #ffffff;
}

.offer-description {
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-size: 15px;
  line-height: 1.7;
}

.offer-features {
  list-style: none;
  margin-bottom: 20px;
}

.offer-features li {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.check {
  color: var(--primary);
  margin-right: 12px;
  font-weight: 600;
  font-size: 13px;
}

.glow-effect {
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
  opacity: 0.08;
  transition: opacity 0.4s;
}

.offer-card:hover .glow-effect {
  opacity: 0.15;
}

.glow-effect.blue {
  background: var(--primary);
}

.glow-effect.purple {
  background: var(--secondary);
}



.contact-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.glow-bubbles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glow-bubbles::before,
.glow-bubbles::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.05;
}

.glow-bubbles::before {
  top: 10%;
  left: 15%;
  width: 350px;
  height: 350px;
  background: var(--primary);
  animation: float 18s ease-in-out infinite;
}

.glow-bubbles::after {
  bottom: 15%;
  right: 10%;
  width: 300px;
  height: 300px;
  background: var(--secondary);
  animation: float 15s ease-in-out infinite reverse;
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.contact-info,
.contact-form {
  height: 100%;
  opacity: 1;
  transform: translateY(0);
}

.info-inner,
.form-inner {
  background: rgba(20, 20, 30, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 40px;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.info-inner:hover,
.form-inner:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.info-inner::before,
.form-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
}

.info-inner::before {
  background: linear-gradient(to right, var(--primary), transparent);
}

.form-inner::before {
  background: linear-gradient(to right, var(--secondary), transparent);
}

.info-inner h3,
.form-inner h3 {
  font-size: 20px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 30px;
  letter-spacing: 0.5px;
}

.info-brand {
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.info-brand h3 {
  margin: 0 0 6px 0;
  font-size: 26px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  color: #ffffff;
  letter-spacing: 0.3px;
  background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.info-brand-sub {
  margin: 0;
  font-size: 13px;
  color: rgba(189, 189, 189, 0.75);
  letter-spacing: 0.2px;
  font-weight: 400;
}

.info-block {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.info-block:last-of-type {
  border-bottom: none;
  padding-bottom: 22px;
}

.info-block-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(66, 165, 245, 0.16), rgba(167, 139, 250, 0.12));
  border: 1px solid rgba(66, 165, 245, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #90caf9;
  font-size: 15px;
  margin-top: 2px;
}

.info-block-body {
  flex-grow: 1;
  min-width: 0;
}

.info-label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: rgba(167, 139, 250, 0.95);
  margin-bottom: 10px;
  font-family: 'Montserrat', sans-serif;
}

.info-line {
  color: #ffffff;
  line-height: 1.55;
  font-size: 15px;
  margin: 0;
  font-weight: 400;
}

.info-line + .info-line {
  margin-top: 2px;
}

.info-line a {
  color: #ffffff;
  text-decoration: none;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.1px;
  transition: color 0.3s ease;
}

.info-line a:hover {
  color: var(--primary);
}

.info-hint {
  margin: 6px 0 0;
  font-size: 13px;
  color: rgba(220, 220, 220, 0.85);
  line-height: 1.5;
  letter-spacing: 0.1px;
  font-weight: 400;
}

.info-registry {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: rgba(189, 189, 189, 0.85);
  font-family: 'Roboto', sans-serif;
}

.info-registry span {
  white-space: nowrap;
}

.info-registry strong {
  color: rgba(167, 139, 250, 0.95);
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-right: 4px;
  font-size: 10.5px;
}

.glow-corner {
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--primary);
  filter: blur(60px);
  opacity: 0.06;
}

.form-inner .glow-corner {
  background: var(--secondary);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text);
  font-size: 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(66, 165, 245, 0.2);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

.form-status {
  margin-top: 15px;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}

.form-status.success {
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
  color: #81c784;
}

.form-status.error {
  background: rgba(244, 67, 54, 0.1);
  border: 1px solid rgba(244, 67, 54, 0.3);
  color: #e57373;
}

.footer {
  background-color: rgba(0, 0, 0, 1);
  padding: 60px 0 40px;
  position: relative;
  overflow: hidden;
}

.footer-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.footer-content {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
  position: relative;
  z-index: 2;
  text-align: center;
}

.footer-info {
  text-align: center;
  width: 100%;
}

.footer-logo {
  font-size: 28px;
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 10px;
}

.footer-tagline {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 15px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

.company-details {
  display: none;
}

.footer-line {
  height: 1px;
  width: 100%;
  background: linear-gradient(to right, var(--primary), var(--secondary), var(--primary));
  margin-top: 20px;
  position: relative;
  z-index: 2;
  transform: scaleX(1);
}

.footer-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.section + .section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.06), transparent);
  z-index: 3;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loadingProgress {
  from {
    width: 0%;
  }

  to {
    width: 100%;
  }
}

@keyframes scrollAnimation {

  0%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }

  50% {
    transform: translateY(20px);
    opacity: 1;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

@keyframes floatCode {
  0% {
    transform: translate(0, 0);
    opacity: 0.3;
  }

  100% {
    transform: translate(10px, 10px);
    opacity: 0.5;
  }
}

@keyframes footerLineAnimate {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  will-change: opacity, transform;
}

.fade-in.active {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.desktop-nav ul li a,
.mobile-nav ul li a,
.btn[href="#kontakt"] {
  cursor: pointer;
}

link[rel="icon"] {
  display: inline-block;
}

.projects {
  background-color: rgba(0, 0, 0, 1);
  position: relative;
  padding: 100px 0;
}

.projects-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.projects-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(66, 165, 245, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(66, 165, 245, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.6;
}

.projects-bg .glow-circle.right-top {
  top: 8%;
  right: 3%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(66, 165, 245, 0.08), transparent 70%);
}

.projects-bg .glow-circle.left-bottom {
  bottom: 5%;
  left: 3%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.07), transparent 70%);
}

.projects-group {
  margin-bottom: 72px;
}

.projects-group:last-child {
  margin-bottom: 0;
}

.projects-group-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.projects-group-line {
  width: 4px;
  height: 56px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  flex-shrink: 0;
}

.projects-group-line.green {
  background: linear-gradient(180deg, #4caf50, #2e7d32);
}

.projects-group-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.3px;
  margin: 0 0 4px 0;
}

.projects-group-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 400;
  margin: 0;
  letter-spacing: 0.2px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  grid-template-rows: auto auto repeat(4, auto) auto;
  column-gap: 28px;
  row-gap: 0;
  align-items: start;
}

.projects-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  max-width: 880px;
  margin: 0 auto;
}

.project-card {
  position: relative;
  background: rgba(20, 20, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 38px 34px 30px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  overflow: visible;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 7;
  row-gap: 0;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 18%, var(--secondary) 82%, transparent 100%);
  opacity: 0.95;
}

.project-card.accent-cyber::before {
  background: linear-gradient(90deg, transparent 0%, #42a5f5 18%, #1e88e5 82%, transparent 100%);
}

.project-card.accent-legal::before {
  background: linear-gradient(90deg, transparent 0%, #a78bfa 18%, #7c3aed 82%, transparent 100%);
}

.project-card.accent-enterprise::before {
  background: linear-gradient(90deg, transparent 0%, #60a5fa 18%, #a78bfa 82%, transparent 100%);
}

.project-card.accent-insurance::before {
  background: linear-gradient(90deg, transparent 0%, #26a69a 18%, #00838f 82%, transparent 100%);
}

.project-card.accent-ai::before {
  background: linear-gradient(90deg, transparent 0%, #fbbf24 18%, #f97316 82%, transparent 100%);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(66, 165, 245, 0.25);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(66, 165, 245, 0.08);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.project-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 22px 0;
}

.project-head-top {
  display: block;
  min-height: 20px;
}

.project-sector {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: rgba(167, 139, 250, 0.8);
}

.project-card.accent-cyber .project-sector {
  color: rgba(144, 202, 249, 0.9);
}

.project-card.accent-legal .project-sector {
  color: rgba(196, 181, 253, 0.9);
}

.project-card.accent-enterprise .project-sector {
  color: rgba(147, 197, 253, 0.9);
}

.project-card.accent-insurance .project-sector {
  color: rgba(77, 182, 172, 0.95);
}

.project-card.accent-ai .project-sector {
  color: rgba(252, 211, 77, 0.95);
}

.project-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 21px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: 0.15px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-tagline {
  font-size: 13.5px;
  color: rgba(224, 224, 224, 0.82);
  font-weight: 400;
  margin: 0;
  letter-spacing: 0.1px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-status {
  position: absolute;
  top: -11px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  white-space: nowrap;
  background: linear-gradient(135deg, #1e88e5, #42a5f5);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 14px rgba(66, 165, 245, 0.35);
  z-index: 3;
}

.project-status .badge-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
  animation: pulse-dot 2s infinite ease-in-out;
}

.project-status.deployed {
  background: linear-gradient(135deg, #2e7d32, #4caf50);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(76, 175, 80, 0.35);
}

.project-status.deployed i {
  font-size: 8.5px;
}

.project-description {
  font-size: 13.5px;
  color: rgba(189, 189, 189, 0.92);
  line-height: 1.6;
  margin: 0 0 18px 0;
  letter-spacing: 0.1px;
  min-height: 65px;
}

.project-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
  row-gap: 0;
}

.highlight + .highlight {
  margin-top: 10px;
}

.highlight {
  position: relative;
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(224, 224, 224, 0.85);
  padding-left: 14px;
  letter-spacing: 0.05px;
}

.highlight::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(66, 165, 245, 0.7);
}

.project-card.accent-legal .highlight::before {
  background: rgba(167, 139, 250, 0.7);
}

.project-card.accent-insurance .highlight::before {
  background: rgba(77, 182, 172, 0.8);
}

.project-card.accent-ai .highlight::before {
  background: rgba(251, 191, 36, 0.75);
}

.highlight strong {
  color: #ffffff;
  font-weight: 600;
  margin-right: 4px;
  letter-spacing: 0.15px;
}

.project-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
}

.project-keytech {
  font-size: 12px;
  color: rgba(189, 189, 189, 0.65);
  letter-spacing: 0.2px;
  line-height: 1.5;
  flex: 1;
  min-width: 0;
}

.project-grant {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  background: rgba(251, 191, 36, 0.08);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.22);
  white-space: nowrap;
}

.project-grant i {
  font-size: 9px;
}

.project-card:not(.deployed) .project-grant:not(:has(i)) {
  background: rgba(66, 165, 245, 0.08);
  color: #90caf9;
  border-color: rgba(66, 165, 245, 0.22);
}

.project-card.deployed .project-grant {
  background: rgba(76, 175, 80, 0.08);
  color: #81c784;
  border-color: rgba(76, 175, 80, 0.22);
}

.project-card.accent-legal .project-grant {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.28);
}

.project-footer {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: rgba(189, 189, 189, 0.7);
  letter-spacing: 0.2px;
  margin-top: auto;
}

.audits {
  background-color: rgba(0, 0, 0, 1);
  position: relative;
  padding: 100px 0;
}

.audits-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.audits-bg .glow-circle.right-top {
  top: 5%;
  right: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.08), transparent 70%);
}

.audits-bg .glow-circle.left-bottom {
  bottom: 0;
  left: 0;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(66, 165, 245, 0.07), transparent 70%);
}

.audits-intro {
  max-width: 900px;
  margin: 0 auto 48px;
  text-align: center;
}

.audits-intro p {
  font-size: 16px;
  color: rgba(224, 224, 224, 0.9);
  line-height: 1.75;
  letter-spacing: 0.1px;
}

.audits-intro strong {
  color: var(--text);
  font-weight: 600;
  border-bottom: 1px solid rgba(167, 139, 250, 0.45);
  padding-bottom: 1px;
}

.audit-variants {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto auto auto auto auto;
  column-gap: 24px;
  row-gap: 0;
  margin-bottom: 56px;
}

.audit-variant-card {
  position: relative;
  background: rgba(20, 20, 30, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 36px 32px 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 6;
  row-gap: 0;
}

.audit-variant-card:nth-child(-n+2) {
  margin-bottom: 24px;
}

.audit-variant-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 18%, var(--secondary) 82%, transparent 100%);
  opacity: 0.95;
}

.audit-variant-card:hover {
  transform: translateY(-4px);
  border-color: rgba(167, 139, 250, 0.22);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.audit-variant-card.recommended {
  border-color: rgba(251, 191, 36, 0.35);
  background: linear-gradient(180deg, rgba(30, 25, 20, 0.7), rgba(20, 20, 30, 0.55));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 36px rgba(251, 191, 36, 0.08);
}

.audit-variant-card.recommended::before {
  background: linear-gradient(90deg, transparent 0%, #fbbf24 18%, #f97316 82%, transparent 100%);
  opacity: 1;
  height: 3px;
}

.variant-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 9px;
  background: linear-gradient(90deg, #fbbf24, #f97316);
  color: #1a1200;
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
  text-transform: uppercase;
  z-index: 2;
}

.variant-number {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--primary);
  background: rgba(66, 165, 245, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
}

.audit-variant-card.recommended .variant-number {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
}

.audit-variant-card.addon {
  border-color: rgba(167, 139, 250, 0.28);
  background: linear-gradient(180deg, rgba(28, 22, 38, 0.62), rgba(20, 20, 30, 0.55));
}

.audit-variant-card.addon::before {
  background: linear-gradient(90deg, transparent 0%, #a78bfa 18%, #7c3aed 82%, transparent 100%);
  opacity: 0.95;
  height: 3px;
}

.audit-variant-card.addon .variant-number {
  color: #c4b5fd;
  background: rgba(167, 139, 250, 0.14);
}

.audit-variant-card.addon .variant-scope li::before {
  background: #a78bfa;
  opacity: 0.75;
}

.audit-variant-card.addon .variant-result {
  background: rgba(167, 139, 250, 0.08);
  border-color: rgba(167, 139, 250, 0.22);
  color: #c4b5fd;
}

.variant-badge.addon-badge {
  background: linear-gradient(90deg, #a78bfa, #7c3aed);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(167, 139, 250, 0.35);
}

.variant-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 10px 0;
  letter-spacing: 0.2px;
}

.variant-tagline {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0 0 18px 0;
  font-weight: 400;
}

.variant-scope {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: start;
}

.variant-scope li {
  position: relative;
  padding-left: 20px;
  font-size: 13px;
  color: rgba(224, 224, 224, 0.85);
  line-height: 1.55;
}

.variant-scope li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.7;
}

.audit-variant-card.recommended .variant-scope li::before {
  background: #fbbf24;
  opacity: 0.8;
}

.variant-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: rgba(66, 165, 245, 0.08);
  border: 1px solid rgba(66, 165, 245, 0.18);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: #90caf9;
  margin-bottom: 14px;
  letter-spacing: 0.2px;
  min-height: calc(1.5em * 2 + 22px);
}

.variant-result i {
  font-size: 14px;
  opacity: 0.85;
}

.audit-variant-card.recommended .variant-result {
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.22);
  color: #fbbf24;
}

.variant-for {
  font-size: 12px;
  color: rgba(189, 189, 189, 0.75);
  line-height: 1.55;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  letter-spacing: 0.1px;
  display: flex;
  align-items: center;
}

.audit-methodology {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 56px;
}

.methodology-tile {
  background: rgba(20, 20, 30, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 26px 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.methodology-tile:hover {
  border-color: rgba(167, 139, 250, 0.2);
  transform: translateY(-3px);
}

.tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.15), rgba(66, 165, 245, 0.12));
  color: var(--secondary);
}

.methodology-tile h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 14px 0;
  letter-spacing: 0.2px;
}

.methodology-tile ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.methodology-tile ul li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  color: rgba(224, 224, 224, 0.8);
  line-height: 1.5;
}

.methodology-tile ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--secondary);
  opacity: 0.7;
}

.audit-cta {
  background: linear-gradient(135deg, rgba(66, 165, 245, 0.08), rgba(167, 139, 250, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 36px 40px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-text {
  flex: 1;
  min-width: 280px;
}

.cta-text h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px 0;
  letter-spacing: 0.2px;
}

.cta-text p {
  font-size: 14px;
  color: rgba(224, 224, 224, 0.85);
  line-height: 1.65;
  margin: 0;
  max-width: 640px;
}

.audit-cta .btn {
  flex-shrink: 0;
}

.form-hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.form-privacy {
  margin-top: 18px;
  font-size: 12px;
  color: rgba(189, 189, 189, 0.55);
  line-height: 1.6;
  letter-spacing: 0.1px;
  text-align: center;
}

.form-privacy a,
.form-consent a {
  color: rgba(167, 139, 250, 0.9);
  text-decoration: underline;
  text-decoration-color: rgba(167, 139, 250, 0.35);
  text-underline-offset: 2px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.form-privacy a:hover,
.form-consent a:hover {
  color: var(--secondary);
  text-decoration-color: var(--secondary);
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 6px;
  font-size: 13px;
  color: rgba(220, 220, 228, 0.85);
  line-height: 1.55;
}

.form-consent input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

.form-consent label {
  cursor: pointer;
  letter-spacing: 0.1px;
}

.footer-legal {
  margin-top: 6px;
  font-size: 14px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  transition: color 0.2s, border-color 0.2s;
}

.footer-legal a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 680px;
  margin: 0 auto;
  padding: 20px 24px;
  background: rgba(12, 12, 18, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 22px 56px -14px rgba(0, 0, 0, 0.7);
  z-index: 9000;
  display: none;
  font-family: 'Roboto', system-ui, sans-serif;
  font-size: 14.5px;
  color: #e8e8ec;
  line-height: 1.6;
  letter-spacing: 0.1px;
}

.cookie-banner.show {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-banner p {
  flex: 1 1 300px;
  margin: 0;
}

.cookie-banner a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(66, 165, 245, 0.35);
  text-underline-offset: 2px;
}

.cookie-banner a:hover {
  text-decoration-color: var(--primary);
}

.cookie-banner button {
  flex-shrink: 0;
  padding: 10px 22px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cookie-banner button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -4px rgba(66, 165, 245, 0.4);
}

@media (max-width: 560px) {
  .cookie-banner { font-size: 12.5px; padding: 14px 16px; }
  .cookie-banner button { width: 100%; margin-top: 4px; }
}

@media (max-width: 1200px) {
  .section {
    padding: 80px 0;
  }

  .hero .title {
    font-size: 42px;
  }

  .hero .subtitle {
    font-size: 18px;
  }

  .section-title {
    font-size: 32px;
  }
}

@media (max-width: 992px) {
  .specializations-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .offer-models {
    grid-template-columns: 1fr;
  }

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

  .right-top,
  .left-bottom {
    width: 50%;
    height: 50%;
  }
}

@media (max-width: 1100px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 120px 0 80px;
  }

  .hero .title {
    font-size: 36px;
  }

  .hero .subtitle {
    font-size: 16px;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 28px;
  }

  .stats-container {
    grid-template-columns: 1fr;
  }

  .cursor-dot {
    display: none !important;
  }

  .trust-items {
    gap: 20px;
  }

  .trust-item {
    font-size: 12px;
  }

  .trust-icon {
    width: 32px;
    height: 32px;
  }

  .offer-card-inner {
    padding: 30px;
  }

  .info-inner,
  .form-inner {
    padding: 30px;
  }

  .info-inner h3,
  .form-inner h3 {
    font-size: 18px;
  }

  .footer-links {
    gap: 16px;
  }
}

@media (max-width: 576px) {
  .container {
    width: 95%;
    padding: 0 10px;
  }

  .hero .title {
    font-size: 30px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 14px;
  }

  .section-title {
    font-size: 24px;
  }

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

  .trust-items {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .offer-card-inner {
    padding: 24px;
  }

  .info-inner,
  .form-inner {
    padding: 24px;
  }

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

  .loading-logo {
    font-size: 2.5rem;
  }

  .loading-bar-container {
    width: 250px;
  }
}

@media (max-width: 992px) {
  .projects-grid,
  .projects-grid.compact {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    grid-template-rows: none;
    row-gap: 28px;
    max-width: 560px;
    margin: 0 auto;
  }

  .project-card {
    display: flex;
    flex-direction: column;
    gap: 22px;
    grid-row: auto;
  }

  .project-head {
    margin-bottom: 0;
  }

  .project-description {
    margin-bottom: 0;
  }

  .project-highlights {
    display: flex;
    flex-direction: column;
    gap: 10px;
    grid-row: auto;
  }

  .highlight + .highlight {
    margin-top: 0;
  }

  .project-foot {
    margin-top: 0;
  }

  .audit-variants {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    row-gap: 20px;
    column-gap: 20px;
  }

  .audit-variant-card {
    display: flex;
    flex-direction: column;
    grid-row: auto;
  }

  .audit-cta {
    padding: 28px 28px;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .projects,
  .audits {
    padding: 70px 0;
  }

  .projects-group {
    margin-bottom: 56px;
  }

  .projects-group-header {
    gap: 16px;
  }

  .projects-group-title {
    font-size: 22px;
  }

  .project-card {
    padding: 26px 22px 22px;
    gap: 16px;
  }

  .project-name {
    font-size: 22px;
  }

  .project-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .metric-value {
    font-size: 20px;
  }

  .audit-variant-card {
    padding: 24px 22px 20px;
  }

  .variant-title {
    font-size: 18px;
  }

  .audit-methodology {
    grid-template-columns: 1fr;
  }

  .audit-cta {
    padding: 24px 22px;
  }

  .cta-text h3 {
    font-size: 20px;
  }

  .audits-intro p {
    font-size: 15px;
  }
}

@media (max-width: 576px) {
  .projects-grid,
  .projects-grid.compact {
    grid-template-columns: 1fr;
  }

  .audit-variants {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    row-gap: 20px;
  }

  .project-card {
    padding: 22px 18px 20px;
    gap: 14px;
  }

  .project-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .project-metrics .metric:last-child {
    grid-column: 1 / -1;
  }

  .project-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .variant-scope li,
  .project-description {
    font-size: 12.5px;
  }
}

/* ============================================================
   ENTERPRISE PERFORMANCE PATCH
   - Pure-CSS ambient zamiast particles.js
   - Header: will-change + mobile backdrop downgrade
   - SVG animacje pauzowane poza viewport
   - Globalny prefers-reduced-motion safety net
   ============================================================ */

header {
  will-change: backdrop-filter, padding, background-color;
}

@media (max-width: 768px) {
  header {
    background-color: rgba(8, 8, 12, 0.88);
    backdrop-filter: blur(8px) saturate(1.1);
    -webkit-backdrop-filter: blur(8px) saturate(1.1);
  }

  header.scrolled {
    background-color: rgba(8, 8, 12, 0.96);
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  header {
    transition: none;
  }
}

.particles-container {
  background:
    radial-gradient(ellipse 60% 50% at 25% 30%, rgba(66, 165, 245, 0.10), transparent 70%),
    radial-gradient(ellipse 50% 55% at 75% 70%, rgba(156, 39, 176, 0.08), transparent 70%),
    radial-gradient(ellipse 70% 40% at 50% 100%, rgba(100, 181, 246, 0.06), transparent 70%);
}

.particles-container::before,
.particles-container::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.particles-container::before {
  top: 15%;
  left: 12%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(66, 165, 245, 0.18), transparent 70%);
  animation: ambientDriftA 28s ease-in-out infinite;
}

.particles-container::after {
  top: 55%;
  right: 10%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(156, 39, 176, 0.14), transparent 70%);
  animation: ambientDriftB 34s ease-in-out infinite;
}

@keyframes ambientDriftA {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(40px, -30px, 0) scale(1.08); }
}

@keyframes ambientDriftB {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-50px, 35px, 0) scale(1.12); }
}

@media (max-width: 768px) {
  .particles-container::before {
    width: 220px;
    height: 220px;
  }
  .particles-container::after {
    width: 260px;
    height: 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .particles-container::before,
  .particles-container::after {
    animation: none;
  }
}

.ix-icon:not(.in-view) .ix-chip-core,
.ix-icon:not(.in-view) .ix-chip-dot,
.ix-icon:not(.in-view) .ix-chip-pins line,
.ix-icon:not(.in-view) .ix-flask-liquid,
.ix-icon:not(.in-view) .ix-bubble,
.ix-icon:not(.in-view) .ix-report-check,
.ix-icon:not(.in-view) .ix-eu-node,
.ix-icon:not(.in-view) .ix-eu-links line {
  animation-play-state: paused;
}

.glow-circle:not(.in-view),
.glow-bubbles:not(.in-view) {
  animation-play-state: paused;
}

@media (max-width: 768px) {
  section .glow-circle:nth-of-type(n+2),
  .glow-bubbles::after {
    display: none;
  }
}

.floating-code {
  contain: strict;
}

.code-snippet {
  transform: translateZ(0);
  backface-visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .floating-code,
  .footer-particles {
    display: none !important;
  }

  .cursor-dot {
    display: none !important;
  }

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.header-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 60px;
  pointer-events: none;
  opacity: 0;
}

/* Terminal zawsze wyrównany do lewej — nadpisuje text-align: center
   dziedziczone z .hero-layout na tablet/mobile breakpointach */
.mockup-terminal,
.terminal-body,
.terminal-head,
.term-line {
  text-align: left;
}

.terminal-title {
  text-align: left;
}

/* CTA audytu: na mobile button wyśrodkowany pod tekstem */
@media (max-width: 768px) {
  .cta-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .cta-text {
    text-align: center;
  }

  .audit-cta .btn {
    align-self: center;
  }
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.125em;
  flex-shrink: 0;
}

/* ===== Przełącznik języka (PL / EN / DE / FR) ===== */
.lang-switch ul {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lang-switch li {
  display: flex;
}

.lang-switch a,
.lang-switch .lang-current {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 6px;
  line-height: 1;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.lang-switch a {
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.lang-switch a:hover,
.lang-switch a:focus-visible {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.06);
}

.lang-switch .lang-current {
  color: var(--primary);
  cursor: default;
}

.lang-switch--mobile {
  display: none;
}

@media (max-width: 1100px) {
  .lang-switch--desktop {
    display: none;
  }

  /* Mobilny przełącznik: równe "pigułki", aktywny język wyróżniony wypełnieniem.
     Wysoka specyficzność (.mobile-nav .lang-switch--mobile ...) pokonuje reguły
     .mobile-nav ul li a / .mobile-nav ul li, które inaczej psuły wygląd. */
  .mobile-nav .lang-switch--mobile {
    display: flex;
    justify-content: center;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .mobile-nav .lang-switch--mobile ul {
    display: flex;
    justify-content: center;
    gap: 8px;
    width: 100%;
  }

  .mobile-nav .lang-switch--mobile li {
    flex: 1 1 0;
    max-width: 84px;
    margin: 0;
    border: 0;
  }

  .mobile-nav .lang-switch--mobile a,
  .mobile-nav .lang-switch--mobile .lang-current {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    padding: 11px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
  }

  .mobile-nav .lang-switch--mobile a {
    color: rgba(255, 255, 255, 0.62);
    background: transparent;
    transform: none;
  }

  .mobile-nav .lang-switch--mobile a:hover,
  .mobile-nav .lang-switch--mobile a:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.28);
    transform: none;
  }

  .mobile-nav .lang-switch--mobile .lang-current {
    color: #ffffff;
    background: var(--primary);
    border-color: var(--primary);
  }
}
