/* ==========================================================================
   GEODEO - Geodezja Inżynieryjna B2B & Pomiary Lokalne (8-Widokowy System SEO)
   Biuro Usług Geodezyjnych GEODEO – inż. Radosław Fal
   Architektura CSS: 100% Mobile-First, Flexbox/Grid, jednostki względne (rem, %, vw, clamp)
   ========================================================================== */

:root {
  --graphite-950: #090D16;
  --graphite-900: #111827;
  --graphite-800: #1F2937;
  --graphite-700: #374151;
  --graphite-600: #4B5563;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50: #F8FAFC;
  --white: #FFFFFF;

  /* Akcenty inżynieryjne: Pomarańcz techniczny + Zieleń z logo GEODEO */
  --tech-orange: #EA580C;
  --tech-orange-hover: #C2410C;
  --tech-orange-light: #FFF7ED;
  --tech-orange-border: #FDBA74;

  --geodeo-green: #5B9A5F;
  --geodeo-green-dark: #15803D;
  --geodeo-green-light: #F0FDF4;
  --geodeo-green-border: #86EFAC;

  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1.25rem;

  /* Lekkie cienie na urządzeniach mobilnych (eliminacja obciążeń GPU przy skrolowaniu) */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 2px 6px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 4px 10px rgba(17, 24, 39, 0.1);
  --shadow-xl: 0 6px 14px rgba(9, 13, 22, 0.14);

  --container: 78.75rem; /* 1260px */
  /* Tylko właściwości wspierane sprzętowo / niepowodujące przeliczania układu (layout thrashing) */
  --transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

@media (min-width: 48rem) { /* 768px+ – pełne cienie na większych ekranach */
  :root {
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px -2px rgba(17, 24, 39, 0.12);
    --shadow-lg: 0 12px 24px -4px rgba(17, 24, 39, 0.16);
    --shadow-xl: 0 20px 35px -8px rgba(9, 13, 22, 0.28);
  }
}

/* ==========================================================================
   1. GLOBAL RESET & BOX-SIZING (ELIMINACJA POZIOMEGO PRZEWIJANIA)
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%; /* 16px baza */
  -webkit-text-size-adjust: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

@media (min-width: 64rem) and (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--slate-50);
  color: var(--graphite-900);
  line-height: 1.65;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  padding-bottom: 4.5rem; /* miejsce na mobilny pasek dolny */
  overflow-wrap: break-word;
  word-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 64rem) { /* 1024px */
  body {
    padding-bottom: 0;
  }
}

main {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

header, footer, section, article, nav, div {
  max-width: 100%;
}

/* Zapobieganie rozpychaniu kontenerów Flexbox i CSS Grid przez dzieci */
.hero-grid > *,
.cards-grid-4 > *,
.advantages-grid > *,
.county-grid > *,
.steps-grid-3 > *,
.gminy-grid > *,
.reviews-portal-bar > *,
.reviews-strip > *,
.contact-grid > *,
.footer-matrix > *,
.field-photo-grid-2 > *,
.field-photo-grid-5 > *,
.hero-metrics-bar > * {
  min-width: 0;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
  touch-action: manipulation;
}

img, svg, video, canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

button, input, select, textarea, label {
  font-family: inherit;
  font-size: inherit;
  max-width: 100%;
  touch-action: manipulation;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(0.95rem, 4vw, 1.5rem);
}

/* ==========================================================================
   2. TECHNICAL GRID PATTERN OVERLAY
   ========================================================================== */
.bg-tech-grid {
  background-color: var(--graphite-900);
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 2.25rem 2.25rem;
}

.bg-light-grid {
  background-color: var(--slate-50);
  background-image: 
    linear-gradient(to right, rgba(17, 24, 39, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 24, 39, 0.035) 1px, transparent 1px);
  background-size: 2rem 2rem;
}

/* ==========================================================================
   3. TOP ENGINEERING STATUS BAR (MOBILE-FIRST)
   ========================================================================== */
.top-bar {
  background-color: var(--graphite-950);
  color: var(--slate-400);
  font-size: clamp(0.74rem, 2.2vw, 0.82rem);
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

/* Na małych ekranach ukrywamy długi tekst statusowy, zostawiając szybki kontakt */
.status-indicator {
  display: none;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  font-weight: 600;
}

@media (min-width: 48rem) { /* 768px */
  .top-bar-inner {
    justify-content: space-between;
  }
  .status-indicator {
    display: inline-flex;
  }
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: #22C55E;
  flex-shrink: 0;
  transform: translate3d(0, 0, 0);
}

@media (min-width: 64rem) {
  .status-dot {
    animation: pulse-dot 2.4s ease-in-out infinite;
    will-change: transform, opacity;
  }
}

@keyframes pulse-dot {
  0%, 100% { transform: scale3d(1, 1, 1); opacity: 1; }
  50% { transform: scale3d(1.28, 1.28, 1); opacity: 0.65; }
}

.top-bar-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem 1.15rem;
}

.top-bar-links a {
  color: var(--white);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.top-bar-links a:hover {
  color: var(--tech-orange);
}

/* ==========================================================================
   4. HEADER & MULTI-PAGE NAVIGATION (MOBILE-FIRST)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #FFFFFF;
  border-bottom: 2px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

@media (min-width: 64rem) {
  .site-header {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  gap: 0.65rem;
}

@media (min-width: 64rem) { /* 1024px */
  .header-inner {
    min-height: 5.875rem;
    gap: 1.25rem;
  }
}

.logo-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 2.75rem; /* 44px – czytelny rozmiar mobilny na smartfonach */
  width: auto;
  max-width: none;
  display: block;
  transition: var(--transition);
}

@media (min-width: 48rem) { /* 768px – tablety i ekrany średnie */
  .logo-img {
    height: 3.5rem; /* 56px pliku PNG (~45px samej grafiki logo) */
    max-height: 3.75rem;
    width: auto;
  }
}

@media (min-width: 64rem) { /* 1024px+ – komputery / widok desktopowy */
  .logo-img {
    height: 4.125rem; /* 66px pliku PNG (~53px samej grafiki logo) */
    max-height: 4.25rem; /* 68px */
    width: auto;
  }
}

.logo-tag {
  display: none !important;
}

.main-nav {
  display: none;
}

@media (min-width: 64rem) { /* 1024px */
  .main-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }
}

@media (min-width: 80rem) { /* 1280px */
  .main-nav {
    gap: 1.15rem;
  }
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.65rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--graphite-800);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

@media (min-width: 80rem) { /* 1280px */
  .nav-link {
    gap: 0.375rem;
    padding: 0.625rem 0.85rem;
    font-size: 0.95rem;
  }
}

.nav-link:hover, .nav-link.active {
  color: var(--tech-orange);
  background-color: var(--tech-orange-light);
}

/* Dropdown Menu for B2B & Obszar działania */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 21rem;
  max-width: 90vw;
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-top: 3px solid var(--tech-orange);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.625rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  transition: var(--transition);
  z-index: 200;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: flex;
  flex-direction: column;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.dropdown-link:hover, .dropdown-link.active {
  background-color: var(--slate-100);
}

.dropdown-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--graphite-900);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.dropdown-link:hover .dropdown-title {
  color: var(--tech-orange);
}

.dropdown-sub {
  font-size: 0.75rem;
  color: var(--slate-500);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Mobile-First: w nagłówku na smartfonie pokazujemy kompaktowy telefon + menu ☰,
   a długi przycisk "Szybka wycena / Zleć pomiar" pojawia się od tabletów wzwyż */
.header-cta .btn-orange {
  display: none;
}

.header-cta .btn-dark {
  padding: 0.55rem 0.75rem;
  font-size: 0.8rem;
}

@media (min-width: 48rem) { /* 768px */
  .header-cta {
    gap: 0.625rem;
  }
  .header-cta .btn-orange {
    display: inline-flex;
  }
  .header-cta .btn-dark {
    padding: 0.75rem 1.15rem;
    font-size: 0.9rem;
  }
}

/* ==========================================================================
   5. BUTTONS (MOBILE-FIRST, ELASTYCZNE ZAWIJANIE TEKSTU)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.15rem;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: normal; /* pozwala zawinąć długi tekst na wąskim ekranie smartfona */
  max-width: 100%;
}

@media (min-width: 40rem) { /* 640px */
  .btn {
    padding: 0.75rem 1.25rem;
    white-space: nowrap;
  }
}

.btn svg {
  flex-shrink: 0;
}

.btn-orange {
  background-color: var(--tech-orange);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

.btn-orange:hover {
  background-color: var(--tech-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.4);
}

.btn-green {
  background-color: var(--geodeo-green-dark);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.25);
}

.btn-green:hover {
  background-color: #166534;
  transform: translateY(-2px);
}

.btn-dark {
  background-color: var(--graphite-900);
  color: var(--white);
  border-color: var(--graphite-700);
}

.btn-dark:hover {
  background-color: var(--graphite-800);
  border-color: var(--tech-orange);
  transform: translateY(-2px);
}

.btn-outline-light {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-outline-light:hover {
  background-color: var(--white);
  color: var(--graphite-900);
  border-color: var(--white);
}

.btn-outline-dark {
  background-color: var(--white);
  color: var(--graphite-900);
  border-color: var(--slate-200);
}

.btn-outline-dark:hover {
  border-color: var(--tech-orange);
  color: var(--tech-orange);
}

.btn-lg {
  padding: 0.875rem 1.35rem;
  font-size: clamp(0.9rem, 2.6vw, 0.98rem);
}

@media (min-width: 40rem) {
  .btn-lg {
    padding: 0.9375rem 1.625rem;
  }
}

.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--graphite-900);
  font-size: 1.2rem;
  cursor: pointer;
  flex-shrink: 0;
}

@media (min-width: 64rem) { /* 1024px */
  .mobile-menu-btn {
    display: none;
  }
}

/* ==========================================================================
   6. HERO SECTIONS (MAIN & SUBPAGES - MOBILE-FIRST)
   ========================================================================== */
.hero-tech {
  position: relative;
  padding: clamp(2.25rem, 6vw, 3.75rem) 0 clamp(2.75rem, 7vw, 4.5rem) 0;
  color: var(--white);
  overflow: hidden;
  border-bottom: 4px solid var(--tech-orange);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 5vw, 2.75rem);
  align-items: center;
}

@media (min-width: 64rem) { /* 1024px */
  .hero-grid {
    grid-template-columns: 1.18fr 0.82fr;
  }
}

.tech-eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  background-color: rgba(234, 88, 12, 0.18);
  border: 1px solid rgba(234, 88, 12, 0.45);
  color: #FDBA74;
  font-size: clamp(0.7rem, 2.2vw, 0.78rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.1rem;
  max-width: 100%;
}

.tech-eyebrow.green {
  background-color: rgba(91, 154, 95, 0.22);
  border-color: rgba(134, 239, 172, 0.4);
  color: #86EFAC;
}

.hero-h1 {
  font-size: clamp(1.65rem, 5.5vw, 2.75rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
  color: var(--white);
}

.hero-h1 .accent-orange {
  color: #FB923C;
}

.hero-h1 .accent-green {
  color: #86EFAC;
}

/* Trójpoziomowy, czytelny nagłówek H1 dla podstron powiatowych */
.hero-h1-county {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 1.35rem;
}

.county-h1-main {
  display: block;
  font-size: clamp(1.85rem, 6vw, 3.15rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #FFFFFF;
}

.county-h1-region {
  display: block;
  font-size: clamp(1.35rem, 4.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: #F1F5F9;
  padding-bottom: 0.25rem;
}

.county-h1-gminy {
  display: block;
  font-size: clamp(0.92rem, 2.8vw, 1.2rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
}

.hero-lead {
  font-size: clamp(0.96rem, 2.8vw, 1.1rem);
  color: #CBD5E1;
  line-height: 1.65;
  margin-bottom: 1.65rem;
  max-width: 42.5rem;
}

/* Mobile-First: przyciski CTA w Hero na smartfonie mają 100% szerokości, od 640px obok siebie */
.hero-cta-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

@media (min-width: 40rem) { /* 640px */
  .hero-cta-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.875rem;
  }
}

.hero-metrics-bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (min-width: 24rem) { /* 384px */
  .hero-metrics-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 40rem) { /* 640px */
  .hero-metrics-bar {
    grid-template-columns: repeat(4, 1fr);
  }
}

.metric-box {
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--tech-orange);
  padding: 0.625rem 0.75rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.metric-box.green {
  border-left-color: var(--geodeo-green);
}

.metric-val {
  font-size: clamp(1.02rem, 3.5vw, 1.22rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
}

.metric-lbl {
  font-size: 0.74rem;
  color: var(--slate-400);
  margin-top: 0.2rem;
  line-height: 1.35;
}

/* Hero Visual Frame (Elastyczne proporcje zamiast sztywnych pikseli) */
.hero-visual-frame {
  position: relative;
  width: 100%;
  background-color: var(--graphite-800);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero-visual-frame img {
  width: 100%;
  height: clamp(15rem, 52vw, 27.5rem);
  object-fit: cover;
}

.hero-visual-frame.portrait-frame {
  width: 100%;
  max-width: 26.875rem; /* 430px */
  margin-left: auto;
  margin-right: auto;
}

.hero-visual-frame.portrait-frame img {
  height: clamp(20rem, 75vw, 32.5rem);
  object-fit: cover;
  object-position: center 20%;
}

/* Dokumentacja fotograficzna z terenu (2- i 5-kolumnowa, Mobile-First) */
.field-photo-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.25rem;
}

@media (min-width: 48rem) { /* 768px */
  .field-photo-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.field-photo-grid-5 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.125rem;
  margin-top: 2.25rem;
}

@media (min-width: 36rem) { /* 576px */
  .field-photo-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) { /* 1024px */
  .field-photo-grid-5 {
    grid-template-columns: repeat(5, 1fr);
  }
}

.field-photo-card {
  background: var(--graphite-900);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.field-photo-card:hover {
  transform: translateY(-4px);
  border-color: var(--tech-orange);
}

.field-photo-card img {
  width: 100%;
  height: clamp(14rem, 48vw, 17.5rem);
  object-fit: cover;
  object-position: center 22%;
}

.field-photo-card.tall-photo img {
  height: clamp(18rem, 62vw, 26.25rem);
  object-position: center 18%;
}

.field-photo-caption {
  padding: 0.875rem 1rem;
  background: rgba(9, 13, 22, 0.96);
  border-top: 2px solid var(--tech-orange);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.field-photo-tag {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #FB923C;
}

.field-photo-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #F8FAFC;
  line-height: 1.35;
}

.hero-visual-caption {
  background: rgba(9, 13, 22, 0.96);
  padding: 0.875rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
}

.caption-text {
  font-size: 0.82rem;
  color: #E2E8F0;
  font-weight: 600;
}

.caption-badge {
  background-color: var(--tech-orange);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.25rem 0.625rem;
  border-radius: 0.25rem;
  text-transform: uppercase;
}

/* ==========================================================================
   7. SECTIONS & HEADINGS (MOBILE-FIRST)
   ========================================================================== */
.section {
  padding: clamp(2.75rem, 7vw, 4.75rem) 0;
}

.section-white {
  background-color: var(--white);
}

.section-dark {
  background-color: var(--graphite-900);
  color: var(--white);
}

.section-header {
  max-width: 48.75rem;
  margin-bottom: clamp(1.75rem, 5vw, 2.75rem);
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tech-orange);
  background-color: var(--tech-orange-light);
  border: 1px solid var(--tech-orange-border);
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  margin-bottom: 0.75rem;
  max-width: 100%;
}

.section-tag.green {
  color: var(--geodeo-green-dark);
  background-color: var(--geodeo-green-light);
  border-color: var(--geodeo-green-border);
}

.section-h2 {
  font-size: clamp(1.45rem, 4.5vw, 2.25rem);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--graphite-900);
  margin-bottom: 0.75rem;
}

.section-dark .section-h2 {
  color: var(--white);
}

.section-lead {
  font-size: clamp(0.95rem, 2.6vw, 1.05rem);
  color: var(--graphite-600);
}

.section-dark .section-lead {
  color: var(--slate-400);
}

/* ==========================================================================
   8. 4 PILLARS / B2B & B2C CARDS GRID
   ========================================================================== */
.cards-grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 40rem) { /* 640px */
  .cards-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 68.75rem) { /* 1100px */
  .cards-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pillar-card {
  background-color: var(--white);
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: clamp(1.25rem, 4vw, 1.75rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0.25rem;
  background-color: var(--tech-orange);
}

.pillar-card.green-accent::before {
  background-color: var(--geodeo-green-dark);
}

.pillar-card:hover {
  border-color: var(--tech-orange);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.pillar-card.green-accent:hover {
  border-color: var(--geodeo-green-dark);
}

.pillar-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  border-radius: 0.25rem;
  background-color: var(--graphite-900);
  color: var(--white);
  margin-bottom: 1rem;
  align-self: flex-start;
}

.pillar-badge.green {
  background-color: var(--geodeo-green-dark);
}

.pillar-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-sm);
  background-color: var(--tech-orange-light);
  color: var(--tech-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  border: 1px solid var(--tech-orange-border);
  flex-shrink: 0;
}

.pillar-card.green-accent .pillar-icon {
  background-color: var(--geodeo-green-light);
  color: var(--geodeo-green-dark);
  border-color: var(--geodeo-green-border);
}

.pillar-h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--graphite-900);
  margin-bottom: 0.625rem;
  line-height: 1.3;
}

.pillar-desc {
  font-size: 0.92rem;
  color: var(--graphite-600);
  margin-bottom: 1.35rem;
  line-height: 1.6;
}

.pillar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--tech-orange);
  padding-top: 0.875rem;
  border-top: 1px solid var(--slate-100);
}

.pillar-card.green-accent .pillar-link {
  color: var(--geodeo-green-dark);
}

.pillar-card:hover .pillar-link {
  gap: 0.75rem;
}

/* ==========================================================================
   9. WHY US / 4 ENGINEERING ADVANTAGES (MOBILE-FIRST)
   ========================================================================== */
.advantages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 48rem) { /* 768px */
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

.adv-card {
  background-color: var(--graphite-800);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid var(--tech-orange);
  border-radius: var(--radius-md);
  padding: clamp(1.25rem, 4vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  transition: var(--transition);
}

@media (min-width: 36rem) { /* 576px */
  .adv-card {
    flex-direction: row;
    gap: 1.125rem;
  }
}

.adv-card:nth-child(even) {
  border-left-color: var(--geodeo-green);
}

.adv-card:hover {
  background-color: rgba(31, 41, 55, 0.9);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
}

.adv-num {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
  background-color: rgba(234, 88, 12, 0.2);
  color: #FB923C;
  font-weight: 900;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.adv-card:nth-child(even) .adv-num {
  background-color: rgba(91, 154, 95, 0.25);
  color: #86EFAC;
}

.adv-h3 {
  font-size: clamp(1.05rem, 3vw, 1.15rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.adv-p {
  font-size: 0.93rem;
  color: #CBD5E1;
  line-height: 1.65;
}

/* ==========================================================================
   10. LOCAL SEO COUNTY BOXES (POWIATY - MOBILE-FIRST)
   ========================================================================== */
.county-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 48rem) { /* 768px */
  .county-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

.county-box {
  background-color: var(--white);
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: clamp(1.25rem, 4vw, 1.75rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.county-box:hover {
  border-color: var(--geodeo-green-dark);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.county-box.featured-county {
  border-color: var(--tech-orange);
  background: linear-gradient(180deg, #FFF7ED 0%, #FFFFFF 45%);
}

.county-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.875rem;
}

.county-h3 {
  font-size: clamp(1.15rem, 3.5vw, 1.35rem);
  font-weight: 900;
  color: var(--graphite-900);
}

.county-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: 0.25rem;
  background-color: var(--geodeo-green-light);
  color: var(--geodeo-green-dark);
  border: 1px solid var(--geodeo-green-border);
  max-width: 100%;
}

.county-box.featured-county .county-tag {
  background-color: var(--tech-orange);
  color: var(--white);
  border-color: var(--tech-orange);
}

.county-box.telecom-county {
  border-top: 4px solid #0284C7;
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
}

.county-tag.telecom-tag {
  background-color: #E0F2FE;
  color: #0369A1;
  border-color: #7DD3FC;
}

.county-towns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin: 0.875rem 0 1.25rem 0;
}

.town-chip {
  font-size: 0.78rem;
  font-weight: 600;
  background-color: var(--slate-100);
  color: var(--graphite-800);
  padding: 0.25rem 0.6rem;
  border-radius: 0.25rem;
  border: 1px solid var(--slate-200);
  line-height: 1.4;
}

.b2b-region-banner {
  margin-top: 1.75rem;
  background-color: var(--graphite-900);
  color: var(--white);
  border-left: 5px solid var(--tech-orange);
  border-radius: var(--radius-md);
  padding: clamp(1.25rem, 4vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-md);
}

@media (min-width: 48rem) { /* 768px */
  .b2b-region-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ==========================================================================
   11. PROCESS / TECHNICAL STEPS & LISTS (FOR SUBPAGES)
   ========================================================================== */
.steps-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 62rem) { /* 992px */
  .steps-grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.tech-step-card {
  background-color: var(--white);
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: clamp(1.25rem, 4vw, 1.75rem);
  position: relative;
}

.tech-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--graphite-900);
  color: var(--tech-orange);
  font-weight: 900;
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  margin-bottom: 0.875rem;
  letter-spacing: 0.05em;
  max-width: 100%;
}

.tech-step-h3 {
  font-size: clamp(1.08rem, 3vw, 1.2rem);
  font-weight: 800;
  color: var(--graphite-900);
  margin-bottom: 0.75rem;
}

.tech-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tech-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.94rem;
  color: var(--graphite-700);
  line-height: 1.55;
}

.tech-list li svg {
  color: var(--tech-orange);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.tech-list.green-checks li svg {
  color: var(--geodeo-green-dark);
}

/* Municipality SEO Cards */
.gminy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.125rem;
}

@media (min-width: 40rem) { /* 640px */
  .gminy-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) { /* 1024px */
  .gminy-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gmina-card {
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-top: 3px solid var(--geodeo-green-dark);
  border-radius: var(--radius-md);
  padding: clamp(1.15rem, 3.5vw, 1.375rem);
  box-shadow: var(--shadow-sm);
}

.gmina-h3, .gmina-name {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--graphite-900);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gmina-villages, .gmina-desc {
  font-size: 0.88rem;
  color: var(--graphite-600);
  line-height: 1.6;
}

/* ==========================================================================
   12. SOCIAL PROOF MINI-WALL (GOOGLE & OFERTEO 5.0)
   ========================================================================== */
.reviews-portal-bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

@media (min-width: 48rem) { /* 768px */
  .reviews-portal-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

.portal-verify-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.875rem;
  background-color: var(--white);
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: clamp(1.1rem, 3.5vw, 1.375rem);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

@media (min-width: 40rem) {
  .portal-verify-card {
    align-items: center;
  }
}

.portal-verify-card:hover {
  border-color: var(--tech-orange);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.portal-verify-card.google-card:hover {
  border-color: var(--geodeo-green-dark);
}

.reviews-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 48rem) { /* 768px */
  .reviews-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 68.75rem) { /* 1100px */
  .reviews-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

.review-box {
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-top: 3px solid var(--tech-orange);
  border-radius: var(--radius-md);
  padding: clamp(1.2rem, 3.8vw, 1.5rem);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.875rem;
  transition: var(--transition);
}

.review-box:hover {
  border-color: var(--tech-orange);
  box-shadow: var(--shadow-md);
}

.review-box.featured-review {
  border-top-width: 4px;
  background: linear-gradient(180deg, #FFFBEB 0%, #FFFFFF 38%);
}

.review-top-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.review-stars {
  color: #F59E0B;
  font-size: 0.98rem;
  letter-spacing: 0.125rem;
}

.review-verified-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #15803D;
  background-color: #DCFCE7;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.review-quote {
  font-size: 0.92rem;
  color: var(--graphite-700);
  font-style: italic;
  line-height: 1.6;
}

.review-author {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--graphite-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--slate-100);
}

.review-source-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--tech-orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.review-source-link:hover {
  color: var(--graphite-900);
}

/* ==========================================================================
   13. UNIVERSAL CONTACT SECTION & PROFILE SELECTOR FORM (MOBILE-FIRST)
   ========================================================================== */
.contact-section {
  background-color: var(--graphite-950);
  color: var(--white);
  padding: clamp(2.75rem, 7vw, 4.75rem) 0 2.5rem 0;
  border-top: 4px solid var(--tech-orange);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 2.75rem);
  margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
}

@media (min-width: 64rem) { /* 1024px */
  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.contact-card-item {
  background-color: var(--graphite-900);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: clamp(1rem, 3.5vw, 1.25rem);
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.contact-card-item > div {
  min-width: 0;
}

.contact-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
  background-color: rgba(234, 88, 12, 0.18);
  color: #FB923C;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-lbl {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-400);
  font-weight: 700;
}

.contact-val {
  font-size: clamp(1rem, 3.5vw, 1.2rem);
  font-weight: 800;
  color: var(--white);
  margin-top: 0.15rem;
  word-break: break-word;
}

.contact-val a:hover {
  color: var(--tech-orange);
}

.contact-form-panel {
  background-color: var(--graphite-900);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 4.5vw, 2rem);
  box-shadow: var(--shadow-xl);
}

.profile-selector-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.625rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 40rem) { /* 640px */
  .profile-selector-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.profile-option {
  position: relative;
  cursor: pointer;
}

.profile-option input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.profile-btn-box {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 0.875rem;
  background-color: var(--graphite-800);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 700;
  color: #E2E8F0;
  transition: var(--transition);
}

.profile-option:hover .profile-btn-box {
  border-color: rgba(255, 255, 255, 0.35);
}

.profile-option input[type="radio"]:checked + .profile-btn-box {
  background-color: rgba(234, 88, 12, 0.2);
  border-color: var(--tech-orange);
  color: var(--white);
  box-shadow: 0 0 0 1px var(--tech-orange);
}

.profile-dot {
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 50%;
  border: 2px solid var(--slate-400);
  flex-shrink: 0;
  position: relative;
}

.profile-option input[type="radio"]:checked + .profile-btn-box .profile-dot {
  border-color: var(--tech-orange);
  background-color: var(--tech-orange);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.875rem;
  margin-bottom: 0.875rem;
}

@media (min-width: 40rem) { /* 640px */
  .form-row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-input {
  width: 100%;
  padding: 0.8125rem 1rem;
  background-color: var(--graphite-800);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 0.92rem;
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--tech-orange);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.2);
}

.form-input::placeholder {
  color: var(--slate-400);
}

/* Footer Navigation Matrix */
.footer-matrix {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 48rem) { /* 768px */
  .footer-matrix {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.footer-matrix img {
  max-width: min(100%, 16rem);
  height: auto !important;
  max-height: 5rem;
  object-fit: contain;
}

.footer-col-title {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tech-orange);
  margin-bottom: 0.875rem;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links-list a {
  font-size: 0.88rem;
  color: var(--slate-400);
}

.footer-links-list a:hover {
  color: var(--white);
  padding-left: 0.25rem;
}

.footer-bottom-bar {
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--slate-500);
}

@media (min-width: 48rem) { /* 768px */
  .footer-bottom-bar {
    flex-direction: row;
    text-align: left;
  }
}

/* ==========================================================================
   14. MOBILE DRAWER & STICKY CALL BAR
   ========================================================================== */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background-color: var(--graphite-950);
  z-index: 2000;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transform: translate3d(100%, 0, 0);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  backface-visibility: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-drawer.open {
  transform: translate3d(0, 0, 0);
}

.mobile-drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-drawer-close {
  width: 2.625rem;
  height: 2.625rem;
  background: var(--graphite-800);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  cursor: pointer;
}

.mobile-nav-group {
  margin-bottom: 1.375rem;
}

.mobile-nav-label {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tech-orange);
  margin-bottom: 0.625rem;
}

.mobile-nav-link {
  display: block;
  padding: 0.625rem 0;
  color: var(--white);
  font-weight: 700;
  font-size: 0.96rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background-color: var(--graphite-950);
  border-top: 2px solid var(--tech-orange);
  padding: 0.55rem 0.75rem;
  display: flex;
  gap: 0.5rem;
  z-index: 1500;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.25);
  transform: translate3d(0, 0, 0);
  will-change: transform;
  backface-visibility: hidden;
}

@media (min-width: 64rem) { /* 1024px */
  .mobile-sticky-cta {
    display: none;
  }
}

.mobile-sticky-cta a {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: clamp(0.78rem, 3.2vw, 0.9rem);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.mobile-sticky-call {
  background-color: var(--geodeo-green-dark);
  color: var(--white);
}

.mobile-sticky-quote {
  background-color: var(--tech-orange);
  color: var(--white);
}

/* Breadcrumbs for Subpages */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 0.5rem;
  font-size: 0.8rem;
  color: var(--slate-400);
  margin-bottom: 1.1rem;
}

.breadcrumbs a {
  color: #CBD5E1;
  font-weight: 600;
}

.breadcrumbs a:hover {
  color: var(--tech-orange);
}

.breadcrumbs span.sep {
  color: var(--slate-500);
}

/* ==========================================================================
   15. THREE.JS 3D DIGITAL ELEVATION MODEL (NMT / LIDAR) HERO SECTION
   ========================================================================== */
.hero-3d-wrapper {
  position: relative;
  min-height: auto;
  background-color: #050914;
  color: var(--white);
  overflow: hidden;
  border-bottom: 3px solid rgba(245, 158, 11, 0.55);
  display: flex;
  align-items: center;
  padding: clamp(2rem, 6vw, 3.5rem) 0 clamp(2.5rem, 6vw, 4.25rem) 0;
}

@media (min-width: 64rem) { /* 1024px */
  .hero-3d-wrapper {
    min-height: 43rem;
  }
}

#hero-3d-canvas-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

#hero-3d-canvas-container canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* Subtelna winieta zapewniająca idealny kontrast dla tekstu po lewej i pełną przejrzystość 3D po prawej */
.hero-3d-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 9, 20, 0.82) 0%, rgba(5, 9, 20, 0.45) 65%, rgba(5, 9, 20, 0.75) 100%);
}

@media (min-width: 64rem) {
  .hero-3d-vignette {
    background: linear-gradient(90deg, rgba(5, 9, 20, 0.88) 0%, rgba(5, 9, 20, 0.62) 38%, rgba(5, 9, 20, 0.0) 68%);
  }
}

/* --------------------------------------------------------------------------
   SMARTFONY (< 768px): STATYCZNA, OSTRA GRAFIKA 3D + PEŁNY KADR WIEŻY I GEODETY
   Desktop i tablety pozostają bez zmian.
   -------------------------------------------------------------------------- */
@media (max-width: 47.99rem) {
  /* Brak jakichkolwiek ruchomych efektów w sekcji Hero (animacje, paralaksa, przejścia) */
  .hero-3d-wrapper,
  .hero-3d-wrapper * {
    animation: none !important;
    transition: none !important;
  }

  /* Płótno WebGL renderowane 1:1 w natywnej gęstości ekranu – bez skalowania i rozmycia */
  #hero-3d-canvas-container,
  #hero-3d-canvas-container canvas {
    transform: none;
    filter: none;
    image-rendering: auto;
  }

  /* Zrównoważona winieta na smartfonach: czytelny tekst u góry i pełna wyrazistość siatki 3D, wieży i geodety */
  .hero-3d-vignette {
    background: linear-gradient(
      180deg,
      rgba(5, 9, 20, 0.78) 0%,
      rgba(5, 9, 20, 0.52) 36%,
      rgba(5, 9, 20, 0.22) 65%,
      rgba(5, 9, 20, 0.65) 100%
    );
  }

  /* Elastyczny podgląd 3D na smartfonach */
  .hero-glass-showcase {
    min-height: clamp(14rem, 60vw, 20rem);
  }
}

.hero-3d-content-layer {
  position: relative;
  z-index: 3;
  width: 100%;
}

@media (min-width: 64rem) { /* 1024px */
  .hero-grid-clean {
    grid-template-columns: 0.94fr 1.06fr;
    gap: 1.75rem;
    align-items: stretch;
  }
}

.hero-left-panel {
  width: 100%;
  max-width: 36.25rem;
}

.hero-lead-compact {
  color: #E2E8F0;
  font-size: clamp(0.95rem, 2.8vw, 1.03rem);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}

.hero-metrics-clean {
  background: rgba(5, 9, 20, 0.88);
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(56, 189, 248, 0.22);
}

/* Górny pasek telemetryczny HUD nad nagłówkiem */
.hud-telemetry-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.625rem;
  background: rgba(9, 16, 34, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-left: 3px solid #F59E0B;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.1rem;
  width: fit-content;
  max-width: 100%;
}

.hud-badge-gold {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #FBBF24;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.hud-coords-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(0.64rem, 2.2vw, 0.72rem);
  color: #38BDF8;
  letter-spacing: 0.02em;
  word-break: break-word;
}

.hero-3d-h1 {
  font-size: clamp(1.75rem, 5.5vw, 2.65rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1.125rem;
  color: #FFFFFF;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
}

/* Hierarchiczny, 3-poziomowy układ nagłówka głównego na stronie startowej */
.hero-3d-h1-structured {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.hero-main-title {
  display: block;
  font-size: clamp(1.85rem, 6vw, 3.1rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #FFFFFF;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.95);
}

.hero-region-title {
  display: block;
  font-size: clamp(1.2rem, 4vw, 1.85rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: #FBBF24;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.95);
  margin-top: 0.1rem;
}

.hero-sub-towns {
  display: block;
  font-size: clamp(0.88rem, 2.8vw, 1.14rem);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0;
  color: #7DD3FC;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95);
}

/* Przejrzysty podgląd 3D po prawej stronie (elastyczny na smartfonach) */
.hero-glass-showcase {
  min-height: 13rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  gap: 1.25rem;
  padding: 0.25rem 0;
  background: transparent;
  border: none;
  box-shadow: none;
  position: relative;
}

@media (min-width: 64rem) { /* 1024px */
  .hero-glass-showcase {
    min-height: 26.25rem;
    align-items: flex-end;
  }
}

.showcase-hud-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  background: rgba(5, 9, 20, 0.88);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(56, 189, 248, 0.28);
  max-width: 100%;
}

.showcase-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: clamp(0.66rem, 2.2vw, 0.72rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #38BDF8;
}

.hud-mode-btn {
  background: rgba(245, 158, 11, 0.22);
  border: 1px solid rgba(251, 191, 36, 0.65);
  color: #FDE047;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.35rem 0.65rem;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: var(--transition);
}

.hud-mode-btn:hover {
  background: #F59E0B;
  color: #050914;
}

.hud-engineer-Dock {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(5, 9, 20, 0.9);
  border: 1px solid rgba(251, 191, 36, 0.32);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.875rem;
  margin-top: auto;
  max-width: 100%;
}

.hud-engineer-thumb {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 2px solid #F59E0B;
  flex-shrink: 0;
}

/* Przyciski Hero Premium Gold/Orange */
.btn-gold-glow {
  background: linear-gradient(135deg, #F59E0B 0%, #EA580C 100%);
  color: #FFFFFF;
  border: 1px solid rgba(254, 240, 138, 0.4);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.28);
  transform: translate3d(0, 0, 0);
}

@media (min-width: 64rem) {
  .btn-gold-glow:hover {
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.48);
  }
}
