/* =============================================================
   FOMS Landing Page – style.css
   Kolorystyka: dark navy + leaf green + blue (z logo FOMS)
   Styl: industrial / smart infrastructure / enterprise SaaS
   ============================================================= */

/* ----- CSS Custom Properties – DARK (domyślny) ----- */
[data-theme="dark"] {
  --color-bg-dark:       #363942;
  --color-bg-section:    #3d404a;
  --color-bg-card:       #454852;
  --color-bg-card-hover: #4e515a;
  --color-accent-teal:   #14B8A0;
  --color-accent-cyan:   #1ad4ba;
  --color-accent-blue:   #0A4C9E;
  --color-accent-green:  #0f9a87;
  --color-text:          #e2e8f0;
  --color-text-muted:    #8892a8;
  --color-text-heading:  #ffffff;
  --color-border:        rgba(255,255,255,0.08);
  --color-glass:         rgba(54,57,66,0.85);
  --accent-rgb:          20,184,160;
  --particle-alpha:      1;
  --particle-color-teal: 20,184,160;
  --particle-color-blue: 10,76,158;
  --particle-opacity:    0.58;
  --particle-line-opacity: 0.6;
  --particle-glow: 0.065;
}

/* ----- CSS Custom Properties – LIGHT ----- */
[data-theme="light"] {
  --color-bg-dark:       #e8ecf2;
  --color-bg-section:    #e0e4ec;
  --color-bg-card:       #f0f2f8;
  --color-bg-card-hover: #e8eaf0;
  --color-accent-teal:   #00599E;
  --color-accent-cyan:   #004A8C;
  --color-accent-blue:   #004080;
  --color-accent-green:  #00599E;
  --color-text:          #334155;
  --color-text-muted:    #64748b;
  --color-text-heading:  #0f172a;
  --color-border:        rgba(0,0,0,0.08);
  --color-glass:         rgba(244,246,250,0.9);
  --accent-rgb:          0,89,158;
  --particle-alpha:      0.7;
  --particle-color-teal: 0,121,10;
  --particle-color-blue: 21,88,214;
  --particle-opacity:    1;
  --particle-line-opacity: 0.35;
  --particle-glow: 0.045;
}

:root {

  /* Typografia */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

  /* Layout */
  --container-max:  1280px;
  --section-padding: 60px 0;
  --header-height:   110px;

  /* Animacje */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 0.3s var(--ease-out-expo);
}

/* ----- Theme transition – kaskadowa fala ----- */
html.theme-transitioning,
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
  transition: background 0.7s ease-in-out,
              background-color 0.7s ease-in-out,
              color 0.7s ease-in-out,
              border-color 0.7s ease-in-out,
              fill 0.7s ease-in-out,
              stroke 0.7s ease-in-out,
              filter 0.7s ease-in-out,
              box-shadow 0.7s ease-in-out,
              opacity 0.7s ease-in-out !important;
}
/* Protect header controls from theme opacity transition */
html.theme-transitioning .header__controls,
html.theme-transitioning .header__controls *,
html.theme-transitioning .header__burger,
html.theme-transitioning .header__burger * {
  opacity: 1 !important;
  transition: color 0.7s ease-in-out, background-color 0.7s ease-in-out !important;
}

/* Stagger sekcji — fala koloru od góry do dołu */
html.theme-transitioning body                 { transition-delay: 0s !important; }
html.theme-transitioning .header              { transition-delay: 0s !important; }
html.theme-transitioning .hero                { transition-delay: 0s !important; }
html.theme-transitioning .hero__title,
html.theme-transitioning .hero__title-line,
html.theme-transitioning .hero__title-line--accent,
html.theme-transitioning .poland-map__outline,
html.theme-transitioning .poland-map__hel,
html.theme-transitioning .poland-map__glow   { transition-delay: 0s !important; }
html.theme-transitioning .section--about      { transition-delay: 0.03s !important; }
html.theme-transitioning .section--integrations { transition-delay: 0.06s !important; }
html.theme-transitioning .section--interface   { transition-delay: 0.09s !important; }
html.theme-transitioning .section--security    { transition-delay: 0.12s !important; }
html.theme-transitioning .section--audience    { transition-delay: 0.15s !important; }
html.theme-transitioning .section--cta         { transition-delay: 0.18s !important; }
html.theme-transitioning .section--contact     { transition-delay: 0.21s !important; }
html.theme-transitioning .footer               { transition-delay: 0s !important; }

/* Karty wewnątrz sekcji — subtelny stagger */
html.theme-transitioning .feature-card:nth-child(1)      { transition-delay: 0.05s !important; }
html.theme-transitioning .feature-card:nth-child(2)      { transition-delay: 0.07s !important; }
html.theme-transitioning .feature-card:nth-child(3)      { transition-delay: 0.09s !important; }
html.theme-transitioning .feature-card:nth-child(4)      { transition-delay: 0.11s !important; }

html.theme-transitioning .integration-card:nth-child(1)  { transition-delay: 0.08s !important; }
html.theme-transitioning .integration-card:nth-child(2)  { transition-delay: 0.10s !important; }
html.theme-transitioning .integration-card:nth-child(3)  { transition-delay: 0.12s !important; }
html.theme-transitioning .integration-card:nth-child(4)  { transition-delay: 0.14s !important; }

html.theme-transitioning .security-card:nth-child(1)     { transition-delay: 0.14s !important; }
html.theme-transitioning .security-card:nth-child(2)     { transition-delay: 0.16s !important; }
html.theme-transitioning .security-card:nth-child(3)     { transition-delay: 0.18s !important; }
html.theme-transitioning .security-card:nth-child(4)     { transition-delay: 0.20s !important; }

html.theme-transitioning .audience-card:nth-child(1)     { transition-delay: 0.17s !important; }
html.theme-transitioning .audience-card:nth-child(2)     { transition-delay: 0.19s !important; }
html.theme-transitioning .audience-card:nth-child(3)     { transition-delay: 0.21s !important; }

html.theme-transitioning .contact__item:nth-child(1)     { transition-delay: 0.23s !important; }
html.theme-transitioning .contact__item:nth-child(2)     { transition-delay: 0.25s !important; }

/* ----- Reset & Base ----- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

/* Płynna animacja przejścia między motywami */
html[data-theme],
html[data-theme] *,
html[data-theme] *::before,
html[data-theme] *::after {
  transition:
    background-color 0.5s ease,
    color 0.5s ease,
    border-color 0.5s ease,
    box-shadow 0.5s ease,
    fill 0.5s ease,
    stroke 0.5s ease;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent-teal);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover { color: var(--color-accent-cyan); }

ul { list-style: none; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
}

/* =============================================================
   HEADER – sticky, przezroczysty → solid on scroll
   ============================================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(54,57,66,0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  height: var(--header-height);
  z-index: 1000;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}
[data-theme="light"] .header {
  background: rgba(224,228,236,0.35);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

.header--scrolled {
  background: var(--color-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--color-border);
}

.header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo-img {
  height: 144px;
  width: auto;
}

/* Przełączanie wariantów logo wg motywu – z płynnym fade */
.header__logo-img--dark,
.header__logo-img--light {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: opacity 0.5s ease;
}

.header__logo {
  position: relative;
  display: flex;
  align-items: center;
  width: 140px;
  height: 144px;
}

[data-theme="dark"] .header__logo-img--light  { opacity: 0; pointer-events: none; }
[data-theme="dark"] .header__logo-img--dark   { opacity: 1; }
[data-theme="light"] .header__logo-img--dark  { opacity: 0; pointer-events: none; }
[data-theme="light"] .header__logo-img--light { opacity: 1; }

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header__nav-link {
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all var(--transition-base);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.header__nav-link:hover {
  color: var(--color-text-heading);
  background: rgba(255,255,255,0.1);
}
[data-theme="light"] .header__nav-link:hover {
  background: rgba(0,0,0,0.08);
}

.header__nav-link--cta {
  color: var(--color-bg-dark);
  background: var(--color-accent-teal);
  font-weight: 600;
}

.header__nav-link--cta:hover {
  background: #17c5a0;
  color: #fff;
}
[data-theme="light"] .header__nav-link--cta:hover {
  background: #003060;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,89,158,0.35);
}

/* Hamburger — mobile-first: visible by default, hidden on desktop */
.header__burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
@media (min-width: 1201px) {
  .header__burger { display: none !important; }
}
@media (max-width: 1200px) {
  .header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .header__burger {
    display: flex;
    opacity: 1;
    visibility: visible;
  }
  .header__nav {
    position: fixed;
    top: 8px;
    right: 8px;
    width: 280px;
    height: auto;
    background: var(--color-bg-dark);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: -8px 8px 32px rgba(0,0,0,0.3);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: calc(var(--header-height) - 8px);
    padding-bottom: 0;
    z-index: 999;
  }
  .header__nav.open {
    display: flex;
    animation: navPopIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  }
  .header__nav-list {
    flex-direction: column;
    gap: 8px;
    width: 100%;
    padding: 8px 24px 48px;
  }
  .header__nav-link {
    font-size: 16px;
    padding: 10px 16px;
    border-radius: 8px;
    transition: background 0.2s ease;
    text-align: center;
  }
  .header__nav-link:hover {
    background: rgba(255,255,255,0.06);
  }
  [data-theme="light"] .header__nav {
    background: var(--color-bg-dark);
    border-color: var(--color-border);
    box-shadow: -8px 8px 32px rgba(0,0,0,0.1);
  }
  [data-theme="light"] .header__nav-link:hover {
    background: rgba(0,0,0,0.04);
  }
}

.header__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.header__burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.header__burger.active span:nth-child(2) { opacity: 0; }
.header__burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ----- Kontrolki headera: język + motyw ----- */
.header__controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Przełącznik języka */
.lang-switch {
  position: relative;
  display: inline-block;
}

.lang-flag {
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
  width: 20px;
  height: 14px;
  border-radius: 2px;
  object-fit: cover;
}

.lang-switch__toggle {
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-primary);
}

.lang-switch__toggle:hover {
  background-color: var(--color-bg-card-hover);
  border-color: var(--color-accent-teal);
  color: var(--color-accent-teal);
}

.lang-switch__menu {
  position: absolute;
  top: 100%;
  right: 0;
  list-style: none;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-top: 8px;
  min-width: 180px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.3s var(--ease-out-expo);
  z-index: 1001;
  overflow: hidden;
}

.lang-switch.active .lang-switch__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-switch__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition-base);
  margin: 0;
  font-family: var(--font-primary);
}

li:first-child > .lang-switch__btn {
  border-radius: 7px 7px 0 0;
}

li:last-child > .lang-switch__btn {
  border-radius: 0 0 7px 7px;
}

.lang-switch__btn:hover {
  background-color: var(--color-bg-card-hover);
  color: var(--color-accent-teal);
}

.lang-switch__btn--active {
  background-color: rgba(0, 89, 158, 0.1);
  color: var(--color-accent-teal);
  border-left: 3px solid var(--color-accent-teal);
  padding-left: 13px;
  font-weight: 600;
}

/* Przełącznik motywu — animowany slider */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--color-text-muted);
}

.theme-toggle__track {
  position: relative;
  width: 52px;
  height: 28px;
  border-radius: 14px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  transition: background 0.4s ease, border-color 0.4s ease;
}

.theme-toggle:hover .theme-toggle__track {
  border-color: rgba(var(--accent-rgb),0.3);
}

.theme-toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-accent-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.68, -0.15, 0.27, 1.15),
              background 0.4s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

[data-theme="light"] .theme-toggle__track {
  background: #d5d8e0;
}
[data-theme="light"] .theme-toggle__thumb {
  transform: translateX(24px);
}

.theme-toggle__icon {
  width: 14px;
  height: 14px;
  color: #fff;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Dark: pokaż słońce, ukryj księżyc */
[data-theme="dark"] .theme-toggle__icon--sun  { display: block; opacity: 1; transform: rotate(0deg); }
[data-theme="dark"] .theme-toggle__icon--moon { display: none; opacity: 0; }
[data-theme="light"] .theme-toggle__icon--sun  { display: none; opacity: 0; }
[data-theme="light"] .theme-toggle__icon--moon { display: block; opacity: 1; transform: rotate(0deg); }

/* Canvas particles – niższa widoczność w jasnym motywie */
[data-theme="light"] .hero__canvas {
  opacity: var(--particle-alpha);
}

/* Jasny motyw – kolor "Beyond" jak F/M w logo FOMS */
[data-theme="light"] .hero__title-line {
  color: var(--color-text-heading);
}

[data-theme="light"] .hero__title-line--accent {
  color: var(--color-accent-teal);
}

/* Jasny motyw – tło hero */
[data-theme="light"] .hero {
  background: transparent;
}

[data-theme="light"] .hero__overlay {
  background: transparent;
}



[data-theme="light"] .city-dot {
  fill: var(--color-text-muted);
  opacity: 0.6;
}

[data-theme="light"] .city-label {
  fill: var(--color-text);
  opacity: 0.85;
}

[data-theme="light"] .pin-glow {
  opacity: 0.15;
}

[data-theme="light"] .pin-dot--foms {
  filter: drop-shadow(0 0 8px rgba(0,89,158,0.5));
}

/* Jasny motyw – karty dashboardu */
[data-theme="light"] .dashboard-mock {
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

[data-theme="light"] .dashboard-mock__chart--bar,
[data-theme="light"] .dashboard-mock__chart--line,
[data-theme="light"] .dashboard-mock__metric {
  background: rgba(0,0,0,0.03);
}

[data-theme="light"] .dashboard-mock__header {
  background: rgba(0,0,0,0.04);
}

/* Jasny motyw – przyciski */
[data-theme="light"] .btn--primary {
  box-shadow: 0 4px 24px rgba(var(--accent-rgb),0.2);
}

[data-theme="light"] .btn--outline {
  background: rgba(224,228,236,0.5);
  border-color: rgba(0,0,0,0.12);
  color: var(--color-text-heading);
}


/* =============================================================
   HERO SECTION
   ============================================================= */
.hero {
  position: relative;
  z-index: 1;
  min-height: min(100vh, 1100px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow: hidden;
}

.hero__canvas {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  will-change: contents;
}

/* Perspective grid for depth */
.hero__depth-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(rgba(var(--accent-rgb),0.01) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb),0.01) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 55%, rgba(0,0,0,0.5) 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 55%, rgba(0,0,0,0.5) 0%, transparent 100%);
  transform: perspective(600px) rotateX(25deg) scale(1.6);
  transform-origin: center 70%;
  opacity: 0.3;
  animation: gridFloat 12s ease-in-out infinite;
}

@keyframes gridFloat {
  0%, 100% { transform: perspective(600px) rotateX(25deg) scale(1.6); }
  50%      { transform: perspective(600px) rotateX(27deg) scale(1.62); }
}

[data-theme="light"] .hero__depth-grid {
  background:
    linear-gradient(rgba(0,121,10,0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,121,10,0.012) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.2;
}

/* Ambient glows */
.hero__glow {
  display: none;
}

/* Vignette – wyłączony (powodował banding) */
.hero__vignette {
  display: none;
}

/* Bottom fade – subtle transition matching semi-transparent boxes */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: var(--color-bg-dark);
  mask-image: linear-gradient(to bottom, transparent, black);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black);
  opacity: 0.3;
  z-index: 4;
  pointer-events: none;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 2;
}

.hero__content {
  position: relative;
  z-index: 3;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: min(100vh, 1100px);
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
}

/* Górny pasek: tytuł wycentrowany */
.hero__top-bar {
  width: 100%;
  padding-top: calc(var(--header-height) + 16px);
  margin-bottom: 0;
  flex-shrink: 0;
}

.hero__text-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* CTA pod mapą i statystykami */
.hero__cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}

.hero__cta .btn {
  font-size: 13px;
  padding: 10px 24px;
}

/* Dwukolumnowy split: mapa | statystyki */
.hero__split {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  align-content: start;
  margin-top: 12px;
  width: 100%;
}

/* --- Hero entrance animations --- */
.hero__text-block .hero__label,
.hero__text-block .hero__title,
.hero__text-block .hero__subtitle {
  opacity: 0;
  transform: translateY(-20px);
  animation: heroFadeDown 0.9s var(--ease-out-expo) forwards;
}
.hero__cta {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.9s var(--ease-out-expo) 0.7s forwards;
}
.hero__text-block .hero__label   { animation-delay: 0.15s; }
.hero__text-block .hero__title   { animation-delay: 0.3s; }
.hero__text-block .hero__subtitle{ animation-delay: 0.45s; }

@keyframes heroFadeDown {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Mapa Polski */
.hero__map {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  opacity: 0;
  transform: translateX(60px);
  animation: heroMapIn 1.1s var(--ease-out-expo) 0.25s forwards;
}


@keyframes heroMapIn {
  to { opacity: 1; transform: translateX(0); }
}

.poland-map {
  width: 100%;
  max-width: 100%;
  height: auto;
  shape-rendering: geometricPrecision;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Obrys kraju */
.poland-map__outline {
  fill: rgba(54,57,66,0.5);
  stroke: var(--color-accent-teal);
  stroke-width: 1.8;
  stroke-linejoin: round;
  opacity: 0.9;
  filter: drop-shadow(0 0 3px rgba(var(--accent-rgb),0.5));
}
/* Półwysep Helski */
.poland-map__hel {
  fill: none;
  stroke: var(--color-accent-teal);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
  filter: drop-shadow(0 0 3px rgba(var(--accent-rgb),0.5));
}

/* Podświetlenie krawędzi – duplikowane ścieżki */
.poland-map__glow {
  fill: none;
  stroke: var(--color-accent-teal);
  stroke-width: 14;
  stroke-linejoin: round;
  stroke-linecap: round;
  opacity: 0.25;
}

[data-theme="light"] .poland-map__outline {
  fill: rgba(180,195,215,0.6);
  opacity: 0.75;
  filter: drop-shadow(0 0 6px rgba(232,236,242,0.8));
}

[data-theme="light"] .poland-map__hel {
  opacity: 0.75;
  filter: drop-shadow(0 0 6px rgba(232,236,242,0.8));
}

[data-theme="light"] .poland-map__glow {
  opacity: 0.12;
  stroke: rgba(0,89,158,0.3);
}

/* Hover na mapie — podświetlenie */
.poland-map {
  cursor: pointer;
}

/* Tytuł mapy — ukryty */
.hero__map-label {
  display: none;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent-teal);
  background: rgba(var(--accent-rgb),0.18);
  border: 1px solid rgba(var(--accent-rgb),0.25);
  padding: 8px 22px;
  border-radius: 22px;
  opacity: 0;
  margin-bottom: 14px;
  backdrop-filter: blur(48px);
  -webkit-backdrop-filter: blur(48px);
  pointer-events: none;
}
[data-theme="light"] .hero__map-label {
  color: #00599E;
  background: rgba(0,89,158,0.15);
  border-color: rgba(0,89,158,0.22);
  opacity: 0;
}

/* Miasta */
.city-dot {
  fill: var(--color-accent-teal);
  opacity: 0.7;
}

.city-label {
  font-family: var(--font-primary);
  font-size: 18px;
  fill: var(--color-text);
  opacity: 0.65;
  font-weight: 550;
}

/* Piny FOMS – pulsujące pojawianie/znikanie */
.pin-glow {
  fill: var(--color-accent-teal);
  opacity: 0.2;
}

.pin-dot--foms {
  fill: var(--color-accent-teal);
  filter: drop-shadow(0 0 12px var(--color-accent-teal));
  animation: fomsPulse 2.2s ease-in-out infinite;
}

@keyframes fomsPulse {
  0%   { opacity: 0.15; r: 5; }
  50%  { opacity: 1;    r: 8; }
  100% { opacity: 0.15; r: 5; }
}

.hero__label {
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.hero__title {
  font-size: clamp(26px, 3.8vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text-heading);
  margin-bottom: 8px;
}

.hero__title-line {
  display: block;
  color: var(--color-text-heading);
  white-space: nowrap;
}

.hero__title-line--accent {
  color: var(--color-accent-teal);
}



.hero__subtitle {
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 300;
  color: var(--color-text-muted);
  margin-bottom: 0;
  letter-spacing: 0.02em;
}

.hero__description {
  font-size: 16px;
  color: var(--color-text-muted);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

/* ---- Hero stats ---- */
.hero__stats {
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateX(60px);
  animation: heroMapIn 1.1s var(--ease-out-expo) 0.4s forwards;
}

.hero__stats-hero {
  text-align: center;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.15);
}

.hero__stats-hero .hero__stat-number {
  font-family: var(--font-mono);
  font-size: 42px;
  font-weight: 800;
  color: var(--color-accent-teal);
  letter-spacing: -0.02em;
  line-height: 1;
}

.hero__stats-hero .hero__stat-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 6px;
}

.hero__stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.hero__stat {
  text-align: center;
  padding: 10px 6px;
  border-radius: 10px;
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  transition: background 0.3s, border-color 0.3s;
}

.hero__stat:hover {
  background: rgba(var(--accent-rgb), 0.18);
  border-color: rgba(var(--accent-rgb), 0.35);
}

.hero__stat .hero__stat-number {
  display: block;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-heading);
  line-height: 1.2;
}

.hero__stat .hero__stat-label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-top: 3px;
  line-height: 1.25;
}

[data-theme="light"] .hero__stat {
  background: rgba(180,195,215,0.6);
  border-color: rgba(180,195,215,0.75);
}

[data-theme="light"] .hero__stat:hover {
  background: rgba(180,195,215,0.75);
  border-color: rgba(180,195,215,0.9);
}

/* Scroll indicator */
.hero__scroll-indicator {
  display: none;
}

.hero__scroll-mouse {
  width: 26px;
  height: 40px;
  border: 2px solid var(--color-text-heading);
  border-radius: 13px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  opacity: 0.7;
}

.hero__scroll-text {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-heading);
  opacity: 0.7;
}

.hero__scroll-wheel {
  width: 3px;
  height: 8px;
  background: var(--color-accent-teal);
  border-radius: 2px;
  animation: scrollWheel 1.8s ease-in-out infinite;
}

@keyframes scrollWheel {
  0%   { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(12px); }
}

/* =============================================================
   BUTTONS
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  letter-spacing: 0.01em;
}

.btn--primary {
  background: var(--color-accent-teal);
  color: #fff;
  border: 2px solid transparent;
  box-shadow: 0 4px 24px rgba(var(--accent-rgb),0.25);
}

[data-theme="dark"] .btn--primary {
  background: transparent;
  border-color: var(--color-accent-teal);
  color: var(--color-accent-teal);
  box-shadow: 0 4px 24px rgba(var(--accent-rgb),0.15);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(var(--accent-rgb),0.35);
  background: var(--color-accent-blue);
  color: #fff;
}

[data-theme="light"] .btn--primary:hover {
  background: #004080;
}

[data-theme="dark"] .btn--primary:hover {
  background: var(--color-accent-teal);
  color: #fff;
}

.btn--outline {
  background: rgba(54,57,66,0.5);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn--outline:hover {
  border-color: var(--color-accent-teal);
  color: var(--color-accent-teal);
  background: rgba(var(--accent-rgb),0.05);
}

.btn--lg {
  padding: 18px 40px;
  font-size: 16px;
}

/* =============================================================
   SECTIONS – wspólne style
   ============================================================= */
.section {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
}

.section--about {
  background: transparent;
}

.section--integrations,
.section--interface,
.section--security,
.section--audience,
.section--cta,
.section--contact { background: transparent; }

/* Semi-transparent content boxes — dark theme */
.about-main,
.about-history,
.section--integrations > .container,
.section--audience > .container,
.section--contact > .container,
.section--cta > .container {
  background: rgba(63,67,77,0.82);
  border-radius: 24px;
  padding: 48px 40px;
}

.section--integrations > .container,
.section--contact > .container {
  max-width: calc(var(--container-max) + 200px);
  padding: 48px 80px;
}

/* Stała szerokość + kompaktowy box */
.section--integrations > .container {
  width: 100%;
  box-sizing: border-box;
  max-width: 1360px;
  padding: 32px 60px 24px;
}

.section--integrations .section__header {
  margin-bottom: 32px;
}

.section--integrations .integrations__grid {
  margin-bottom: 24px;
}

/* Wyrównanie wysokości nagłówka sekcji Możliwości — niezależnie od języka */
.section--integrations .section__title {
  min-height: 2.4em; /* 2 linie przy line-height 1.2 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.section--integrations .section__subtitle {
  min-height: 5.1em; /* 3 linie przy line-height 1.7 */
}

.about-history {
  margin-top: 48px;
  padding-top: 40px;
  padding-bottom: 36px;
}

/* Interface — tytuł wewnątrz showcase grid */
.showcase__header {
  grid-column: 1;
  grid-row: 1;
  background: none !important;
  padding: 20px 40px 16px;
  margin-bottom: 0 !important;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.showcase {
  padding: 24px 60px 24px;
  margin-left: -140px;
  margin-right: -140px;
}

.interface-advantages {
  background: rgba(63,67,77,0.82);
  border-radius: 24px;
  padding: 48px 40px;
}

/* Semi-transparent content boxes — light theme */
[data-theme="light"] .about-main,
[data-theme="light"] .about-history,
[data-theme="light"] .section--integrations > .container,
[data-theme="light"] .section--audience > .container,
[data-theme="light"] .section--contact > .container,
[data-theme="light"] .section--cta > .container {
  background: rgba(224,228,236,0.8);
}

[data-theme="light"] .interface-advantages {
  background: rgba(224,228,236,0.8);
}

.section__header {
  text-align: center;
  margin-bottom: 48px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section__label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent-teal);
  background: rgba(var(--accent-rgb),0.08);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.section__title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  color: var(--color-text-heading);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section__subtitle {
  font-size: 17px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* =============================================================
   SEKCJA: O FOMS
   ============================================================= */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about__lead {
  font-size: 16px;
  color: var(--color-text-heading);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about__text p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 16px;
  color: var(--color-text-muted);
}

.about__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.feature-card {
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 40px 32px;
  min-height: 200px;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
  cursor: default;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-accent-teal);
  box-shadow: 0 16px 48px rgba(0,0,0,0.18),
              0 0 0 1px rgba(var(--accent-rgb),0.15);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  color: var(--color-accent-teal);
  margin-bottom: 18px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.feature-card:hover .feature-card__icon {
  opacity: 0;
  transform: scale(0.7) translateY(-8px);
}

.feature-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text-heading);
  margin-bottom: 8px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.feature-card:hover .feature-card__title {
  opacity: 0;
  transform: translateY(-8px);
}

.feature-card__text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 36px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0.01em;
  color: var(--color-text-heading);
  text-align: center;
  background: var(--color-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.feature-card:hover .feature-card__text {
  animation: cardTextReveal 0.35s ease-out forwards;
  pointer-events: auto;
}

@keyframes cardTextReveal {
  0%   { opacity: 0;   filter: blur(8px); transform: translateY(12px); }
  40%  { opacity: 0.6; filter: blur(3px); transform: translateY(4px); }
  100% { opacity: 1;   filter: blur(0);   transform: translateY(0); }
}

/* =============================================================
   INTERFACE ADVANTAGES — feature grid below showcase
   ============================================================= */
.interface-advantages {
  margin-top: 80px;
}

.interface-advantages__header {
  text-align: center;
  margin-bottom: 32px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.interface-advantages__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Stagger reveal delays for advantage cards */
.interface-advantages__grid .feature-card.reveal:nth-child(1) { transition-delay: 0s; }
.interface-advantages__grid .feature-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.interface-advantages__grid .feature-card.reveal:nth-child(3) { transition-delay: 0.2s; }
.interface-advantages__grid .feature-card.reveal:nth-child(4) { transition-delay: 0.3s; }
.interface-advantages__grid .feature-card.reveal:nth-child(5) { transition-delay: 0.4s; }
.interface-advantages__grid .feature-card.reveal:nth-child(6) { transition-delay: 0.5s; }

@media (max-width: 1024px) {
  .interface-advantages__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .interface-advantages__grid {
    grid-template-columns: 1fr;
  }
  .interface-advantages {
    margin-top: 48px;
  }
}

/* =============================================================
   SHOWCASE — stacking cards scroll effect
   ============================================================= */
/* --- Tall wrapper provides scroll distance; showcase sticks inside --- */
.section--interface .section__header {
  margin-bottom: 0;
}

.showcase-wrap {
  position: relative;
  margin-top: 0;
  /* Taller = smoother, smaller step per scroll tick; cap zapobiega pustce przy zoom-out */
  height: min(400vh, 4400px);
}

.showcase {
  position: sticky;
  top: calc(var(--header-height) + 4px);
  display: grid;
  background: rgba(63,67,77,0.82);
  border-radius: 24px;
}
[data-theme="light"] .showcase {
  background: rgba(224,228,236,0.85);
}

/* All cards share the same grid cell → stacked on top of each other */
.showcase__card {
  grid-row: 2;
  grid-column: 1;
  transform: translateY(100vh);
  will-change: transform;
}

.showcase__card:first-child {
  transform: translateY(0);
}

.showcase__card:first-child {
  transform: translateY(0);
  opacity: 1;
}

.showcase__card-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: center;
}

.showcase__screen {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.showcase__img {
  display: block;
  width: 100%;
  height: auto;
}

/* Opis slajdu — obok po prawej */
.showcase__desc-block {
  padding: 8px 0;
}

.showcase__number {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--color-accent-teal);
  margin-bottom: 10px;
  display: block;
}

.showcase__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-heading);
  margin-bottom: 12px;
}

.showcase__desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
  .showcase {
    margin-left: -20px;
    margin-right: -20px;
    padding: 40px 30px;
  }
  .showcase__card-inner {
    grid-template-columns: 1fr 220px;
    gap: 20px;
  }
  .showcase__desc {
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .showcase {
    margin-left: 0;
    margin-right: 0;
    padding: 20px 16px;
    border-radius: 16px;
    row-gap: 16px;
  }
  .showcase__card-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .showcase__desc-block {
    padding: 8px 0;
  }
}

/* Mniejsze viewporty — kompresja nagłówka, mniej paddingu */
@media (max-height: 900px) and (min-width: 769px) {
  .hero__map-label {
    font-size: 11px;
    padding: 6px 18px;
    margin-bottom: 4px;
  }
  .showcase__header {
    padding: 20px 40px 6px;
  }
  .showcase__header .section__label {
    font-size: 11px;
    padding: 5px 16px;
    margin-bottom: 8px;
  }
  .showcase__header .section__title {
    font-size: 30px;
  }
  .showcase__header .section__subtitle {
    font-size: 14px;
    margin-top: 4px;
  }
  .showcase {
    padding: 20px 140px 20px;
    margin-left: -60px;
    margin-right: -60px;
  }
}
@media (max-height: 750px) and (min-width: 769px) {
  .showcase__header .section__title {
    font-size: 26px;
  }
  .showcase {
    padding: 16px 160px 16px;
  }
}

/* =============================================================
   SEKCJA: INTEGRACJE
   ============================================================= */
.integrations__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.integration-card {
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 40px 28px;
  min-height: 200px;
  text-align: center;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
  cursor: default;
}

.integration-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-accent-teal);
  box-shadow: 0 16px 48px rgba(0,0,0,0.18),
              0 0 0 1px rgba(var(--accent-rgb),0.15);
}

.integration-card__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  color: var(--color-accent-teal);
  overflow: visible;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.integration-card:hover .integration-card__icon {
  opacity: 0;
  transform: scale(0.7) translateY(-8px);
}

.integration-card__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  min-height: 2.7em; /* zawsze 2 linie — niezależnie od języka */
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-heading);
  margin-bottom: 8px;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.integration-card:hover .integration-card__title {
  opacity: 0;
  transform: translateY(-8px);
}

/* Overlay panel */
.integration-card__text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0.01em;
  color: var(--color-text-heading);
  text-align: center;
  background: var(--color-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 16px;
  border-top: 2px solid var(--color-accent-teal);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.integration-card:hover .integration-card__text {
  animation: cardTextReveal 0.35s ease-out forwards;
  pointer-events: auto;
}

.integrations__note {
  text-align: center;
  font-size: 15px;
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

/* =============================================================
   SEKCJA: INTERFEJS
   ============================================================= */
.interface__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}

/* Dashboard mockup */
.dashboard-mock {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
}

.dashboard-mock__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid var(--color-border);
}

.dashboard-mock__dots {
  display: flex;
  gap: 6px;
}

.dashboard-mock__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dashboard-mock__dots span:nth-child(1) { background: #ff5f56; }
.dashboard-mock__dots span:nth-child(2) { background: #ffbd2e; }
.dashboard-mock__dots span:nth-child(3) { background: #27ca40; }

.dashboard-mock__url {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-text-muted);
}

.dashboard-mock__body {
  padding: 24px;
}

.dashboard-mock__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.dashboard-mock__row:last-child {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 0;
}

/* Wykres słupkowy */
.dashboard-mock__chart--bar {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 100px;
  padding: 16px;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
}

.mock-bar {
  flex: 1;
  height: var(--h);
  background: var(--color-accent-teal);
  border-radius: 3px 3px 0 0;
  animation: barGrow 1.5s var(--ease-out-expo) forwards;
  transform-origin: bottom;
}

@keyframes barGrow {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

/* Wykres liniowy */
.dashboard-mock__chart--line {
  height: 100px;
  padding: 10px 16px;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
}

.dashboard-mock__chart--line svg {
  width: 100%;
  height: 100%;
}

/* Metryki */
.dashboard-mock__metric {
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
  padding: 16px 12px;
  text-align: center;
}

.dashboard-mock__metric-value {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text-heading);
  font-family: var(--font-mono);
}

.dashboard-mock__metric-label {
  font-size: 11px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.dashboard-mock__metric--alert .dashboard-mock__metric-value {
  color: #ff6b6b;
}

/* Lista cech interfejsu */
.interface__features {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.interface-feature {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.interface-feature__number {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-accent-teal);
  background: rgba(var(--accent-rgb),0.08);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.interface-feature__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-heading);
  margin-bottom: 6px;
}

.interface-feature__text {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* =============================================================
   SEKCJA: BEZPIECZEŃSTWO
   ============================================================= */
.security__intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
  font-size: 16px;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.security__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.security-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 32px;
  transition: all var(--transition-base);
}

.security-card:hover {
  background: var(--color-bg-card-hover);
  border-color: rgba(26,107,255,0.25);
  transform: translateY(-4px);
}

.security-card__icon {
  width: 44px;
  height: 44px;
  color: var(--color-accent-blue);
  margin-bottom: 20px;
}

.security-card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-heading);
  margin-bottom: 10px;
}

.security-card__text {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* =============================================================
   SEKCJA: DLA KOGO
   ============================================================= */
.audience__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.audience-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  transition: all var(--transition-base);
}

.audience-card:hover {
  background: var(--color-bg-card-hover);
  border-color: rgba(var(--accent-rgb),0.15);
  transform: translateY(-6px);
}

.audience-card__visual {
  width: 120px;
  height: 80px;
  margin: 0 auto 28px;
  color: var(--color-accent-teal);
  opacity: 0.7;
  transition: opacity var(--transition-base);
}

.audience-card:hover .audience-card__visual {
  opacity: 1;
}

.audience-card__title {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text-heading);
  margin-bottom: 12px;
}

.audience-card__text {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* =============================================================
   SEKCJA: KONTAKT
   ============================================================= */

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  align-items: stretch;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact__item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px 28px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  transition: transform 0.3s var(--ease-out-expo),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}

.contact__item:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent-teal);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15), 0 0 0 1px rgba(var(--accent-rgb),0.1);
}

.contact__item-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  color: var(--color-accent-teal);
}

.contact__item-content {
  flex: 1;
}

.contact__item-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent-teal);
  margin-bottom: 6px;
}

.contact__item-text {
  font-size: 16px;
  color: var(--color-text);
  line-height: 1.6;
}

.contact__item-text a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s;
}

.contact__item-text a:hover {
  color: var(--color-accent-teal);
}

.contact__person {
  margin-bottom: 14px;
}

.contact__person:last-child {
  margin-bottom: 0;
}

.contact__person-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-heading);
  margin-bottom: 2px;
}

.contact__map {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
}

#contactMap {
  width: 100%;
  height: 100%;
  min-height: 100%;
}

/* Ciemny motyw — inwersja jasnych tiles → ciemne tło, szare budynki */
[data-theme="dark"] #contactMap .leaflet-tile-pane {
  filter: invert(1) brightness(2.2) contrast(0.65);
}
[data-theme="dark"] #contactMap {
  background: #505050;
}

#contactMap .leaflet-control-attribution {
  font-size: 9px;
  opacity: 0.4;
  background: rgba(255,255,255,0.5);
}

@media (max-width: 1024px) {
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .contact__map {
    min-height: 350px;
  }
  #contactMap {
    min-height: 350px;
  }
}

/* =============================================================
   SEKCJA: CTA
   ============================================================= */
.section--cta {
  padding: 100px 0;
}

.cta__content {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--color-text-heading);
  margin-bottom: 16px;
  line-height: 1.2;
  min-height: 2.4em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta__text {
  font-size: 17px;
  color: var(--color-text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
  min-height: 3.4em;
}

.cta__form {
  max-width: 480px;
  margin: 0 auto 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cta__form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cta__form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.cta__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.cta__input {
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  color: var(--color-text);
  font-size: 15px;
  font-family: var(--font-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.cta__input::placeholder {
  color: var(--color-text-muted);
  opacity: 0.5;
}

.cta__input:focus {
  border-color: var(--color-accent-teal);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}

.cta__submit {
  width: 100%;
  margin-top: 4px;
}

.cta__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cta__success {
  text-align: center;
  padding: 20px 0;
}

.cta__success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: block;
}

.cta__success-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-accent-teal);
  margin-bottom: 8px;
}

.cta__success-sub {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.cta__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================================================
   STOPKA
   ============================================================= */
.footer {
  background: var(--color-bg-dark);
  border-top: 1px solid var(--color-border);
  padding: 28px 0 40px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: start;
}

.footer__tagline {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.footer__tagline strong {
  color: var(--color-text-heading);
}

.footer__copy {
  font-size: 12px;
  color: var(--color-text-muted);
  opacity: 0.6;
}

.footer__nav-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-heading);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.footer__nav-list li {
  margin-bottom: 8px;
}

.footer__nav-list a {
  font-size: 14px;
  color: var(--color-text-muted);
  transition: color var(--transition-base);
}

.footer__nav-list a:hover {
  color: var(--color-accent-teal);
}

.footer__blaks-anim {
  max-width: 460px;
  width: 100%;
  opacity: 0.85;
  margin-bottom: -34px;
  margin-left: -68px;
}

[data-theme="dark"] .footer__blaks-anim {
  filter: invert(1) grayscale(1);
  mix-blend-mode: screen;
  opacity: 0.85;
}

/* =============================================================
   SCROLL REVEAL – animacje pojawiania się elementów
   (inspiracja: Splunk, Plana.earth)
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo),
              transform 0.8s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Directional reveal variants */
.reveal--left {
  transform: translateX(-60px) translateY(0);
}

.reveal--right {
  transform: translateX(60px) translateY(0);
}

.reveal--scale {
  transform: scale(0.9) translateY(20px);
}

/* Section reveals – longer, smoother transitions with deblur */
.section--about .reveal,
.section--page .reveal {
  transition: opacity 1s var(--ease-out-expo),
              transform 1s var(--ease-out-expo),
              filter 1s var(--ease-out-expo);
  filter: blur(2px);
}

.section--about .reveal.visible,
.section--page .reveal.visible {
  filter: blur(0);
}

/* About section stagger delays */
.section--about .section__header.reveal { transition-delay: 0s; }
.section--about .about__text.reveal { transition-delay: 0.15s; }
.section--about .feature-card.reveal:nth-child(1) { transition-delay: 0.2s; }
.section--about .feature-card.reveal:nth-child(2) { transition-delay: 0.3s; }
.section--about .feature-card.reveal:nth-child(3) { transition-delay: 0.4s; }
.section--about .feature-card.reveal:nth-child(4) { transition-delay: 0.5s; }

/* Timeline stagger delays (nth-child offset +1 bo timeline__line jest pierwszym dzieckiem) */
.about-history .timeline__item.reveal:nth-child(2) { transition-delay: 0s; }
.about-history .timeline__item.reveal:nth-child(3) { transition-delay: 0.1s; }
.about-history .timeline__item.reveal:nth-child(4) { transition-delay: 0.2s; }
.about-history .timeline__item.reveal:nth-child(5) { transition-delay: 0.3s; }
.about-history .timeline__item.reveal:nth-child(6) { transition-delay: 0.4s; }
.about-history .timeline__item.reveal:nth-child(7) { transition-delay: 0.5s; }
.about-history .timeline__item.reveal:nth-child(8) { transition-delay: 0.6s; }

/* Opóźnienia kaskadowe dla kart */
.feature-card.reveal:nth-child(1),
.integration-card.reveal:nth-child(1),
.security-card.reveal:nth-child(1),
.audience-card.reveal:nth-child(1) { transition-delay: 0s; }

.feature-card.reveal:nth-child(2),
.integration-card.reveal:nth-child(2),
.security-card.reveal:nth-child(2),
.audience-card.reveal:nth-child(2) { transition-delay: 0.1s; }

.feature-card.reveal:nth-child(3),
.integration-card.reveal:nth-child(3),
.security-card.reveal:nth-child(3),
.audience-card.reveal:nth-child(3) { transition-delay: 0.2s; }

.feature-card.reveal:nth-child(4),
.integration-card.reveal:nth-child(4),
.security-card.reveal:nth-child(4) { transition-delay: 0.3s; }

.integration-card.reveal:nth-child(5) { transition-delay: 0.15s; }
.integration-card.reveal:nth-child(6) { transition-delay: 0.25s; }
.integration-card.reveal:nth-child(7) { transition-delay: 0.3s; }
.integration-card.reveal:nth-child(8) { transition-delay: 0.35s; }

.security-card.reveal:nth-child(5) { transition-delay: 0.15s; }
.security-card.reveal:nth-child(6) { transition-delay: 0.25s; }

/* Warianty kierunku animacji */
.interface-feature.reveal:nth-child(1) { transition-delay: 0s; }
.interface-feature.reveal:nth-child(2) { transition-delay: 0.12s; }
.interface-feature.reveal:nth-child(3) { transition-delay: 0.24s; }
.interface-feature.reveal:nth-child(4) { transition-delay: 0.36s; }

/* =============================================================
   SYSTEM STRON — sekcje ukryte jako osobne "strony"
   ============================================================= */
.section--page {
  display: none;
}

.section--page.active {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: min(100vh, 1100px);
  padding: calc(var(--header-height) + 30px) 0 60px;
  box-sizing: border-box;
}
.section--cta.active {
  justify-content: center;
  animation: pageFadeIn 0.6s var(--ease-out-expo) forwards;
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* About as page tab — same layout as section--page.active */
.section--about.as-page {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: min(100vh, 1100px);
  padding: calc(var(--header-height) + 30px) 0 60px;
  box-sizing: border-box;
  animation: pageFadeIn 0.6s var(--ease-out-expo) forwards;
}

/* Override page section display for interface — MUST be after .section--page.active */
.section--interface.active {
  min-height: auto;
  display: block;
  justify-content: initial;
  padding: calc(var(--header-height) + 30px) 0 60px;
  animation: pageFadeInOpacity 0.6s var(--ease-out-expo) forwards;
}

/* Opacity-only fade — no transform so sticky works correctly inside */
@keyframes pageFadeInOpacity {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Active nav link */
.header__nav-link--active {
  color: var(--color-accent-teal) !important;
}
.header__nav-link--cta.header__nav-link--active {
  color: var(--color-bg-dark) !important;
}

/* =============================================================
   HISTORIA ROZWOJU — os czasu (wewnątrz About)
   ============================================================= */
.about-history {
  margin-top: 160px;
}

.about-history .section__header {
  margin-bottom: 32px;
}

/* Gradient fade na krawędziach sugerujący scroll */
.about-history .timeline-wrapper {
  position: relative;
}

.timeline {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0;
}

/* Pozioma linia na środku */
.timeline__line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--color-border), var(--color-accent-teal) 55%, var(--color-accent-teal));
  opacity: 0.4;
  z-index: 1;
  transform: translateY(-50%);
}

/* Każdy item = 3-wierszowy grid: [góra] [dot] [dół] */
.timeline__item {
  position: relative;
  flex: 1 0 0;
  min-width: 0;
  padding: 0 6px;
  scroll-snap-align: start;
  display: grid;
  grid-template-rows: 1fr 12px 1fr;
  justify-items: center;
  gap: 6px;
}

/* Dot zawsze w środkowym wierszu */
.timeline__dot {
  grid-row: 2;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-bg-card);
  border: 2px solid var(--color-text-muted);
  z-index: 2;
}

/* Karta u góry */
.timeline__item--top .timeline__card {
  grid-row: 1;
  align-self: end;
}
.timeline__item--top .timeline__dot {
  align-self: center;
}

/* Karta u dołu */
.timeline__item--bottom .timeline__card {
  grid-row: 3;
  align-self: start;
}
.timeline__item--bottom .timeline__dot {
  align-self: center;
}

.timeline__dot--foms {
  border-color: var(--color-accent-teal);
  background: var(--color-accent-teal);
  box-shadow: 0 0 12px rgba(var(--accent-rgb),0.4);
}

.timeline__card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 12px 14px 16px;
  width: 100%;
  height: 140px;
  overflow: hidden;
  box-sizing: border-box;
  transition: all 0.35s var(--ease-out-expo);
  position: relative;
}

.timeline__card:hover {
  background: var(--color-bg-card-hover);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.timeline__card--foms {
  border-color: rgba(var(--accent-rgb),0.35);
  background: #2f4f4a;
}

.timeline__card--foms:hover {
  border-color: rgba(var(--accent-rgb),0.5);
  background: #365854;
  box-shadow: 0 8px 30px rgba(var(--accent-rgb),0.15), 0 0 40px rgba(var(--accent-rgb),0.08);
}

[data-theme="light"] .timeline__card--foms {
  background: #c2d8e8;
}

[data-theme="light"] .timeline__card--foms:hover {
  background: #b0cce0;
}

.timeline__card-year {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 2px;
  opacity: 0.35;
}
[data-theme="dark"] .timeline__card-year { color: #fff; opacity: 0.6; }
[data-theme="dark"] .timeline__card-text { color: #ddd; }

.timeline__card-year--foms {
  color: var(--color-accent-teal);
  font-weight: 800;
  opacity: 0.7;
}

.timeline__card-text {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* Divider — era separator */
.timeline__divider {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  z-index: 3;
  align-self: center;
  margin-top: -60px;
}

.timeline__divider::before,
.timeline__divider::after {
  content: '';
  display: none;
  width: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-accent-teal));
}

.timeline__divider::before {
  left: 0;
  background: linear-gradient(to right, transparent, var(--color-accent-teal));
}

.timeline__divider::after {
  right: 0;
  background: linear-gradient(to left, transparent, var(--color-accent-teal));
}

.timeline__divider-text {
  display: inline-block;
  background: var(--color-bg-dark);
  padding: 10px 28px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-teal);
  border: 1px solid rgba(var(--accent-rgb),0.3);
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(var(--accent-rgb),0.08);
  white-space: nowrap;
  padding: 5px 12px;
}

[data-theme="light"] .timeline__divider-text {
  background: var(--color-bg-section);
}

/* Timeline cascade — no forced delays, observer handles stagger */

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1024px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .integrations__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .interface__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .security__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .audience__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  /* Hero — tablet */
  .hero__map-label {
    opacity: 0.75;
  }
  [data-theme="light"] .hero__map-label {
    opacity: 0.65;
  }

  /* Timeline — skalowanie na tablet */
  .timeline__card {
    height: auto;
    min-height: 90px;
    overflow: visible;
    padding: 10px 12px 14px;
  }
  .timeline__card-year {
    font-size: 16px;
    margin-bottom: 1px;
  }
  .timeline__card-text {
    font-size: 12px;
    line-height: 1.4;
  }
  .timeline__item {
    padding: 0 4px;
    gap: 4px;
  }
  .timeline__divider-text {
    font-size: 8px;
    padding: 4px 8px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 48px 0;
    --header-height: 64px;
  }

  .hero__content {
    min-height: auto;
    padding-bottom: 40px;
  }

  .hero__top-bar {
    padding-top: calc(var(--header-height) + 16px);
    margin-bottom: 8px;
  }

  .hero__title-line {
    white-space: normal;
  }

  .hero__split {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero__stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
  }
  .hero__stats-hero .hero__stat-number {
    font-size: 28px;
  }
  .hero__stat .hero__stat-number {
    font-size: 15px;
  }
  .hero__stat .hero__stat-label {
    font-size: 9px;
  }

  .hero__map {
    padding: 0;
  }

  .hero__map-label {
    opacity: 0.75;
    font-size: 10px;
    padding: 6px 16px;
  }
  [data-theme="light"] .hero__map-label {
    opacity: 0.65;
  }

  .poland-map {
    max-width: 100%;
  }

  .header__nav {
    position: fixed;
    top: 8px;
    right: 8px;
    width: 280px;
    height: auto;
    background: var(--color-bg-dark);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: -8px 8px 32px rgba(0,0,0,0.3);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: calc(var(--header-height) - 8px);
    padding-bottom: 0;
    z-index: 999;
  }

  .header__nav.open {
    display: flex;
    animation: navPopIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  }

  @keyframes navPopIn {
    from { opacity: 0; transform: scale(0.4); transform-origin: top right; }
    to   { opacity: 1; transform: scale(1);   transform-origin: top right; }
  }

  .header__nav-list {
    flex-direction: column;
    gap: 8px;
    width: 100%;
    padding: 8px 24px 48px;
  }

  .header__nav-link {
    font-size: 16px;
    padding: 10px 16px;
    border-radius: 8px;
    transition: background 0.2s ease;
    text-align: center;
  }
  .header__nav-link:hover {
    background: rgba(255,255,255,0.05);
  }
  [data-theme="light"] .header__nav {
    background: var(--color-bg-dark);
    border-color: var(--color-border);
    box-shadow: -8px 8px 32px rgba(0,0,0,0.1);
  }
  [data-theme="light"] .header__nav-link:hover {
    background: rgba(0,0,0,0.04);
  }

  .lang-switch__btn {
    font-size: 12px;
    padding: 3px 6px;
  }

  .theme-toggle {
    width: 44px;
    height: 28px;
  }
  .theme-toggle__track {
    width: 44px;
    height: 24px;
    border-radius: 12px;
  }
  .theme-toggle__thumb {
    width: 18px;
    height: 18px;
    top: 2px;
    left: 2px;
  }
  [data-theme="light"] .theme-toggle__thumb {
    transform: translateX(20px);
  }
  .theme-toggle__icon {
    width: 11px;
    height: 11px;
  }

  .integrations__grid {
    grid-template-columns: 1fr;
  }

  .security__grid {
    grid-template-columns: 1fr;
  }

  .dashboard-mock__row:last-child {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer {
    padding: 20px 0 24px;
  }
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__blaks-anim {
    max-width: 340px;
    margin-left: -45px;
    margin-bottom: -20px;
  }

  .hero__description br {
    display: none;
  }

  .container {
    padding: 0 20px;
  }


  /* Header — disable backdrop-filter on mobile */
  .header,
  .header--scrolled {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(54,57,66,0.92) !important;
  }
  [data-theme="light"] .header,
  [data-theme="light"] .header--scrolled {
    background: rgba(224,228,236,0.95) !important;
  }

  /* Mobile header: grid with overlapping cells for true centering */
  .header__inner {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: 1fr !important;
    align-items: center !important;
    padding: 0 16px !important;
    height: 100%;
  }

  .header__nav {
    display: none !important;
  }
  .header__nav.open {
    display: flex !important;
  }

  .header__logo {
    grid-area: 1 / 1 !important;
    justify-self: start !important;
    width: 78px;
    height: 56px;
  }
  .header__logo-img {
    height: 80px;
  }

  /* Controls (lang + theme + burger) — same cell, centered */
  .header__controls {
    grid-area: 1 / 1 !important;
    justify-self: center !important;
    display: flex !important;
    align-items: center;
    gap: 10px;
  }

  /* Burger */
  .header__burger {
    display: flex;
    opacity: 1;
    visibility: visible;
  }

  /* Showcase — reduce scroll distance and sticky offset */
  .showcase-wrap {
    height: 300vh;
  }
  .showcase {
    top: calc(var(--header-height) + 2px);
  }

  /* About + History — zmniejszone na mobile */
  .section__title {
    font-size: clamp(24px, 4.5vw, 48px);
  }
  .section__subtitle {
    font-size: 15px;
  }
  .section__label {
    font-size: 11px;
    padding: 5px 12px;
  }
  .about__lead {
    font-size: 14px;
    line-height: 1.7;
  }
  .about__text p {
    font-size: 14px;
    line-height: 1.7;
  }
  .about__grid {
    gap: 32px;
  }
  .about__features {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .feature-card {
    padding: 28px 24px;
    min-height: auto;
  }
  .feature-card__icon {
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
  }
  .feature-card__title {
    font-size: 15px;
  }

  /* History — kompaktowy timeline */
  .about-history {
    margin-top: 56px;
  }
  .timeline__card {
    height: auto;
    min-height: 70px;
    overflow: visible;
    padding: 10px 10px 12px;
  }
  .timeline__item {
    padding: 0 3px;
    gap: 4px;
  }
  .timeline__card-year {
    font-size: 15px;
    margin-bottom: 1px;
  }
  .timeline__card-text {
    font-size: 12px;
    line-height: 1.4;
  }
  .timeline__divider-text {
    font-size: 8px;
    padding: 4px 8px;
  }
  .timeline__dot {
    width: 10px;
    height: 10px;
  }
  .timeline__item {
    grid-template-rows: 1fr 10px 1fr;
  }

  /* Section header — mniejsze marginesy */
  .section__header {
    margin-bottom: 36px;
  }

  /* Integracje — mniejsze elementy na mobile */
  .integrations__grid {
    gap: 16px;
  }
  .integration-card {
    padding: 24px 18px;
    border-radius: 12px;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .integrations__grid {
    max-width: 300px;
    margin: 0 auto 32px;
  }
  .integration-card__icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 14px;
  }
  .integration-card__title {
    font-size: 15px;
    margin-bottom: 6px;
  }
  .integration-card__text {
    font-size: 12px;
    line-height: 1.65;
    padding: 16px 14px;
    border-radius: 12px;
  }
  .integrations__note {
    font-size: 13px;
    padding-top: 16px;
  }

  /* Dla kogo — mniejsze elementy na mobile */
  .audience__grid {
    max-width: 300px;
    margin: 0 auto;
    gap: 16px;
  }
  .audience-card {
    padding: 24px 18px;
    border-radius: 12px;
  }
  .audience-card__visual {
    width: 80px;
    height: 56px;
    margin: 0 auto 16px;
  }
  .audience-card__title {
    font-size: 15px;
    margin-bottom: 8px;
  }
  .audience-card__text {
    font-size: 12px;
    line-height: 1.6;
  }

  /* Semi-transparent boxes — mniejszy padding na mobile */
  .about-main,
  .about-history,
  .section--integrations > .container,
  .section--audience > .container,
  .section--contact > .container,
  .section--cta > .container {
    padding: 28px 20px;
    border-radius: 16px;
  }
  .section--integrations > .container,
  .section--audience > .container,
  .section--cta > .container {
    max-width: 88vw;
    margin: 0 auto;
  }

  /* Na mobile — reset min-height nagłówka integracji */
  .section--integrations .section__title,
  .section--integrations .section__subtitle {
    min-height: unset;
  }
  .interface-advantages {
    padding: 28px 20px;
    border-radius: 16px;
  }
  .section--interface .section__header {
    padding: 24px 20px 0;
  }

  /* Contact — zmniejszone na mobile */
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .contact__info {
    gap: 16px;
  }
  .contact__item {
    gap: 14px;
    padding: 18px 20px;
    border-radius: 12px;
  }
  .contact__item-icon {
    width: 32px;
    height: 32px;
  }
  .contact__item-title {
    font-size: 12px;
    margin-bottom: 4px;
  }
  .contact__item-text {
    font-size: 14px;
  }
  .contact__person-name {
    font-size: 13px;
  }
  .contact__person {
    margin-bottom: 10px;
  }
  .contact__map {
    min-height: 240px;
    border-radius: 12px;
  }
  #contactMap {
    min-height: 240px;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 60px 0;
  }

  .hero__label {
    font-size: clamp(14px, 4vw, 20px);
    margin-bottom: 8px;
  }

  .hero__title {
    font-size: clamp(28px, 10vw, 72px);
    margin-bottom: 16px;
  }

  .hero__subtitle {
    font-size: clamp(15px, 4vw, 24px);
    margin-bottom: 28px;
  }

  .section__title {
    font-size: clamp(24px, 7vw, 48px);
  }

  .container {
    padding: 0 16px;
  }

  .section__header {
    margin-bottom: 32px;
  }

  .poland-map {
    max-width: 100%;
  }

  .about-history {
    margin-top: 48px;
  }

  /* Timeline — pionowy layout na małych ekranach */
  .timeline {
    flex-direction: column;
    gap: 0;
  }
  .timeline__line {
    top: 0;
    bottom: 0;
    left: 16px;
    right: auto;
    width: 2px;
    height: 100%;
    transform: none;
    background: linear-gradient(to bottom, var(--color-border), var(--color-accent-teal) 55%, var(--color-accent-teal));
  }
  .timeline__item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 6px 0 6px 0;
  }
  .timeline__item,
  .timeline__item--top,
  .timeline__item--bottom {
    grid-template-rows: none;
  }
  .timeline__dot {
    flex-shrink: 0;
    margin-left: 10px;
    width: 12px;
    height: 12px;
    order: -1;
  }
  .timeline__card {
    flex: 1;
    height: auto;
    min-height: unset;
    overflow: visible;
    padding: 10px 14px;
    margin-left: 0;
  }
  .timeline__item--top .timeline__card,
  .timeline__item--bottom .timeline__card {
    grid-row: auto;
    align-self: auto;
  }
  .timeline__card-year {
    font-size: 15px;
  }
  .timeline__card-text {
    font-size: 12px;
    line-height: 1.4;
  }
  .timeline__divider {
    margin-top: 0;
    margin-left: 5px;
    padding: 8px 0;
    justify-content: flex-start;
    padding-left: 28px;
  }

  .contact__grid {
    gap: 24px;
  }
  .contact__item {
    padding: 16px 20px;
  }
  .contact__map,
  #contactMap {
    min-height: 220px;
  }

  .dashboard-mock__row,
  .dashboard-mock__row:last-child {
    grid-template-columns: 1fr;
  }

  .btn {
    padding: 12px 24px;
    font-size: 14px;
  }
  .btn--lg {
    padding: 14px 28px;
  }

  .footer__blaks-anim {
    max-width: 280px;
    margin-left: -38px;
  }

  .city-label {
    font-size: 18px;
  }

  .feature-card {
    padding: 28px 20px;
    min-height: auto;
  }

  /* Na touch — tekst zawsze widoczny, bez hover */
  .feature-card__icon {
    display: none;
  }
  .feature-card__title {
    margin-bottom: 12px;
  }
  .feature-card__text {
    position: static;
    opacity: 1;
    pointer-events: auto;
    padding: 0;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    border-top: none;
    font-size: 14px;
    line-height: 1.7;
    text-align: left;
    color: var(--color-text-muted);
  }
  .feature-card:hover .feature-card__icon { opacity: 1; transform: none; }
  .feature-card:hover .feature-card__title { opacity: 1; transform: none; }
  .feature-card:hover .feature-card__text { animation: none; }
  .feature-card:hover { transform: none; }

  .integrations__grid {
    gap: 16px;
  }

  .security__grid {
    gap: 16px;
  }
}

@media (max-width: 320px) {
  :root {
    --section-padding: 40px 0;
  }

  .container {
    padding: 0 12px;
  }

  .footer__blaks-anim {
    margin-left: -30px;
  }

  .contact__map,
  #contactMap {
    min-height: 220px;
  }

  .feature-card {
    padding: 20px 16px;
    min-height: auto;
  }

  .header__logo {
    width: 62px;
    height: 64px;
  }
  .header__logo-img {
    height: 64px;
  }

  .poland-map {
    max-width: 220px;
  }
  .city-label {
    font-size: 10px;
  }
}
