/* =========================================================
   ENERGETYK – Shared Stylesheet
   ========================================================= */

:root {
  --accent:       #cc2020;
  --accent-dark:  #a81818;
  --accent-light: #e03535;
  --font:         'Inter', sans-serif;
  --transition:   0.25s ease;
  --radius:       8px;
  --radius-lg:    14px;
  --nav-h:        72px;
  --container:    1160px;
}

[data-theme="dark"] {
  --bg:           #0a0a0a;
  --bg-2:         #111111;
  --bg-card:      #181818;
  --bg-card-h:    #202020;
  --border:       #2a2a2a;
  --border-s:     #3a3a3a;
  --text:         #f0f0f0;
  --text-2:       #999999;
  --text-3:       #555555;
  --nav-bg:       rgba(10,10,10,0.95);
  --shadow:       0 4px 32px rgba(0,0,0,0.7);
  --shadow-sm:    0 2px 12px rgba(0,0,0,0.5);
  --hero-overlay: rgba(0,0,0,0.70);
  /* SVG scene – noc */
  --sb:    #191714;
  --sb2:   #262220;
  --sg:    #0f0d0b;
  --sw:    #2a0606;
  --spylon: #2e2a26;
  --scable: #1e1b18;
}

[data-theme="light"] {
  --bg:           #f4f4f4;
  --bg-2:         #ebebeb;
  --bg-card:      #ffffff;
  --bg-card-h:    #f9f9f9;
  --border:       #e0e0e0;
  --border-s:     #cccccc;
  --text:         #0a0a0a;
  --text-2:       #555555;
  --text-3:       #aaaaaa;
  --nav-bg:       rgba(244,244,244,0.95);
  --shadow:       0 4px 32px rgba(0,0,0,0.12);
  --shadow-sm:    0 2px 12px rgba(0,0,0,0.08);
  --hero-overlay: rgba(0,0,0,0.65);
  /* SVG scene – zmierzch */
  --sb:    #1b1610;
  --sb2:   #120e0a;
  --sg:    #0c0a07;
  --sw:    #1b1610;
  --spylon: #2a2218;
  --scable: #1a1410;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { border: none; background: none; font-family: inherit; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Accent text --- */
.accent { color: var(--accent); }

/* =========================================================
   NAVIGATION
   ========================================================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 900;
  transition: box-shadow 0.3s;
}
#navbar.scrolled { box-shadow: var(--shadow); }

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo img {
  height: 34px;
  width: auto;
}
.nav-logo-text {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
  text-transform: uppercase;
}
.nav-logo-text span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-link {
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--text); background: var(--border); }
.nav-link.active { color: var(--accent); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-btn {
  width: 38px; height: 38px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
}
.theme-btn:hover { border-color: var(--accent); color: var(--accent); }

.theme-btn .icon-sun { display: none; }
.theme-btn .icon-moon { display: block; }
[data-theme="light"] .theme-btn .icon-sun { display: block; }
[data-theme="light"] .theme-btn .icon-moon { display: none; }

/* Hamburger */
.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 38px; height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.menu-btn span {
  display: block; width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 780px) {
  .menu-btn { display: flex; }
  .nav-links {
    display: flex;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--bg);          /* solidne tło – bez prześwitu zdjęcia */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 12px 20px;
    gap: 2px;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    /* zamknięte: ukryte nad ekranem + niewidoczne */
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.30s cubic-bezier(0.4,0,0.2,1),
                opacity 0.25s ease,
                visibility 0s linear 0.30s;
    z-index: 899;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.30s cubic-bezier(0.4,0,0.2,1),
                opacity 0.25s ease,
                visibility 0s linear 0s;
  }
  .nav-link {
    padding: 14px 16px;
    border-radius: var(--radius);
    font-size: 0.975rem;
    font-weight: 500;
  }
  .nav-link:hover, .nav-link.active {
    background: var(--border);
  }
}

/* =========================================================
   PAGE HERO (subpages)
   ========================================================= */
.page-hero {
  padding-top: calc(var(--nav-h) + 56px);
  padding-bottom: 56px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.page-hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-3);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--text-2); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text-3); }
.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
}
.page-hero p {
  font-size: 1rem;
  color: var(--text-2);
  max-width: 560px;
  line-height: 1.7;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(204,32,32,0.35); }
.btn-outline {
  border: 1.5px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }
.btn-ghost {
  color: var(--text-2);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--border-s); color: var(--text); }
.btn-sm { padding: 9px 18px; font-size: 0.825rem; }
.btn-lg { padding: 16px 34px; font-size: 0.95rem; }

/* =========================================================
   SECTION LAYOUT
   ========================================================= */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-2); }

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
}
.section-sub {
  font-size: 0.975rem;
  color: var(--text-2);
  line-height: 1.75;
  max-width: 560px;
}

.section-head {
  margin-bottom: 52px;
}
.section-head.centered { text-align: center; }
.section-head.centered .section-sub { margin: 0 auto; }

/* =========================================================
   AOS
   ========================================================= */
[data-aos] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-aos].visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   FOOTER
   ========================================================= */
#footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 60px 24px 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-brand img { height: 38px; width: auto; }
.footer-brand-name {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
}
.footer-brand p {
  font-size: 0.825rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-top: 2px;
}
.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col li, .footer-col a {
  font-size: 0.85rem;
  color: var(--text-2);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-3);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* =========================================================
   CARDS (shared)
   ========================================================= */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  border-color: var(--border-s);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

/* =========================================================
   HOME – HERO (animacja Elbląg)
   ========================================================= */
#home-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #0d0d0d;
}

/* Hero: zdjęcie tła z paralaksą */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.hero-img {
  position: absolute;
  top: -25%;
  left: 0; right: 0;
  bottom: -25%;
  background: url('images/hero-bg.jpg') center center / cover no-repeat;
  will-change: transform;
}

/* --- SVG: wypełnienia budynków --- */
.sb       { fill: var(--sb); }
.sb2      { fill: var(--sb2); }
.sg       { fill: var(--sg); }
.cw       { fill: var(--sw); }
.sb2-line { stroke: var(--sb2); fill: none; }

/* --- SVG: pylon i kable --- */
.s-pylon-l { stroke: var(--spylon); fill: none; }
.s-pylon-c { fill: var(--spylon); }
.s-cable   { stroke: var(--scable); fill: none; stroke-width: 1.5; opacity: 0.45; }
.s-pulse   { fill: none; }

/* --- SVG: przełączanie widoczności wg motywu --- */
/* Niebo */
.s-sky-d { display: block; }
.s-sky-l { display: none;  }
[data-theme="light"] .s-sky-d { display: none;  }
[data-theme="light"] .s-sky-l { display: block; }

/* Księżyc */
.s-moon, .s-moon-cut { display: block; }
[data-theme="light"] .s-moon,
[data-theme="light"] .s-moon-cut { display: none; }

/* Gwiazdy */
.s-stars { display: block; }
[data-theme="light"] .s-stars { display: none; }

/* Poświata słońca */
.s-sun-glow { display: none; }
[data-theme="light"] .s-sun-glow { display: block; }

/* Woda */
.s-water-d { display: block; }
.s-water-l { display: none;  }
[data-theme="light"] .s-water-d { display: none;  }
[data-theme="light"] .s-water-l { display: block; }

/* Zmarszczki wody */
.s-ripple { stroke: rgba(255,255,255,0.07); }
[data-theme="light"] .s-ripple { stroke: rgba(160,80,20,0.18); }

/* --- SVG: beacon na iglicy katedry --- */
.s-beacon { animation: beaconPulse 2.5s ease-in-out infinite; }
[data-theme="light"] .s-beacon { animation: none; opacity: 0.5; }

@keyframes beaconPulse {
  0%,100% { opacity: 0.55; }
  50%     { opacity: 1;    filter: drop-shadow(0 0 6px #cc2020); }
}

/* --- SVG: okna – animacja (tylko tryb ciemny) --- */
/* Wieża katedralna – gotyckie lancety */
.cw.wt { animation: winTower  6s        ease-in-out infinite alternate; }
/* Nawa katedry – gotyckie okna */
.cw.wk { animation: winNave   8s  1.2s  ease-in-out infinite alternate; }
/* Okno rozetowe */
.cw.wr { animation: winRose   7s  0.5s  ease-in-out infinite alternate; }
/* Kamienice – typ A */
.cw.wa { animation: winHouse  9s  0.3s  ease-in-out infinite alternate; }
/* Kamienice – typ B */
.cw.wb { animation: winHouse 10s  1.8s  ease-in-out infinite alternate; }

@keyframes winTower {
  0%,20% { fill: #1e0404; }
  60%    { fill: #5c1010; filter: drop-shadow(0 0 3px rgba(204,32,32,0.45)); }
  100%   { fill: #380a0a; }
}
@keyframes winNave {
  0%,25% { fill: #1e0404; }
  55%    { fill: #7a1818; filter: drop-shadow(0 0 4px rgba(204,32,32,0.5)); }
  100%   { fill: #380a0a; }
}
@keyframes winRose {
  0%,20% { fill: #1e0404; }
  50%    { fill: #8a2020; filter: drop-shadow(0 0 6px rgba(204,32,32,0.6)); }
  100%   { fill: #380a0a; }
}
@keyframes winHouse {
  0%,30% { fill: #180303; }
  60%    { fill: #481010; }
  100%   { fill: #280606; }
}

/* Tryb jasny – brak animacji okien, sylwety */
[data-theme="light"] .cw.wt,
[data-theme="light"] .cw.wk,
[data-theme="light"] .cw.wr,
[data-theme="light"] .cw.wa,
[data-theme="light"] .cw.wb,
[data-theme="light"] .cw.wr-inner { animation: none; fill: var(--sw); }

/* --- SVG: impulsy w kablach energetycznych --- */
.s-pulse   { stroke: #cc2020; stroke-width: 2.5; }
#pulse1    { animation: cp1 4.0s 0.5s linear infinite; }
#pulse2    { animation: cp2 3.2s 1.5s linear infinite; }
#pulse3    { animation: cp3 5.0s 0.0s linear infinite; }
#pulse4    { animation: cp4 4.5s 0.9s linear infinite; }

@keyframes cp1 {
  0%   { stroke-dashoffset: 1560; opacity: 1;   }
  85%  {                          opacity: 0.5; }
  100% { stroke-dashoffset:    0; opacity: 0.1; }
}
@keyframes cp2 {
  0%   { stroke-dashoffset: 660; opacity: 1;   }
  85%  {                         opacity: 0.5; }
  100% { stroke-dashoffset:   0; opacity: 0.1; }
}
@keyframes cp3 {
  0%   { stroke-dashoffset: 1360; opacity: 1;   }
  85%  {                          opacity: 0.5; }
  100% { stroke-dashoffset:    0; opacity: 0.1; }
}
@keyframes cp4 {
  0%   { stroke-dashoffset: 1660; opacity: 1;   }
  85%  {                          opacity: 0.5; }
  100% { stroke-dashoffset:    0; opacity: 0.1; }
}

/* Tryb jasny – impulsy ciepłe, przytłumione */
[data-theme="light"] .s-pulse { stroke: #b85010; opacity: 0.55; }

/* Gradient nad miastem (ochrona czytelności tekstu) */
#home-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.82) 0%,
    rgba(0,0,0,0.55) 45%,
    rgba(0,0,0,0.1)  100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Treść hero */
.hero-body {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 80px) 24px 100px;
  width: 100%;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.45);
}
.hero-year {
  color: var(--accent-light);
}
.hero-sep-dot {
  width: 4px; height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
}

.hero-body h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  color: #fff;
  max-width: 600px;
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}
.hero-body h1 .hl {
  color: var(--accent-light);
}
.hero-body p {
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  color: rgba(255,255,255,0.65);
  max-width: 440px;
  line-height: 1.8;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-actions .btn-primary { color: #fff; }
.hero-actions .btn-outline {
  border-color: rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.8);
}
.hero-actions .btn-outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.6);
  color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  #home-hero::after {
    background: linear-gradient(to bottom,
      rgba(0,0,0,0.75) 0%,
      rgba(0,0,0,0.6) 100%);
  }
  .hero-body h1 { font-size: clamp(2.2rem, 10vw, 3rem); }
  .hero-body { padding-bottom: 60px; }
}

/* =========================================================
   HOME – STATS BAR
   ========================================================= */
.stats-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-bar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
  position: relative;
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  display: block;
}
.stat-suf {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 900;
  color: var(--accent);
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 6px;
  display: block;
}

@media (max-width: 640px) {
  .stats-bar-inner { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item { border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(3), .stat-item:nth-child(4) { border-bottom: none; }
}

/* =========================================================
   HOME – SERVICES OVERVIEW
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.service-card:hover {
  border-color: var(--border-s);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 48px; height: 48px;
  margin-bottom: 18px;
  color: var(--accent);
}
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}
.service-card p {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.7;
}

@media (max-width: 860px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   HOME – ABOUT TEASER
   ========================================================= */
.about-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.about-img-wrap img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}
.about-year-tag {
  position: absolute;
  bottom: 20px; left: 20px;
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.85rem;
}
.about-year-tag strong { display: block; font-size: 1.5rem; font-weight: 900; line-height: 1; }
.about-text .section-sub { margin-bottom: 24px; }
.about-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}
.about-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}
.about-list li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

@media (max-width: 820px) {
  .about-teaser { grid-template-columns: 1fr; gap: 40px; }
  .about-img-wrap img { height: 260px; }
}

/* =========================================================
   HOME – CTA BANNER
   ========================================================= */
.cta-banner {
  background: var(--accent);
  border-radius: var(--radius-lg);
  padding: 52px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-banner h2 {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.cta-banner p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
}
.cta-banner .btn {
  background: #fff;
  color: var(--accent);
  flex-shrink: 0;
  font-weight: 700;
}
.cta-banner .btn:hover { background: rgba(255,255,255,0.9); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(0,0,0,0.2); }

/* =========================================================
   USLUGI PAGE
   ========================================================= */
.uslugi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.uslugi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all var(--transition);
  display: flex;
  gap: 24px;
}
.uslugi-card:hover {
  border-color: var(--border-s);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.uslugi-icon {
  width: 52px; height: 52px;
  flex-shrink: 0;
  color: var(--accent);
  background: rgba(204,32,32,0.1);
  border: 1px solid rgba(204,32,32,0.2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  padding: 12px;
}
.uslugi-icon svg { width: 100%; height: 100%; }
.uslugi-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}
.uslugi-body p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 14px;
}
.uslugi-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  padding: 3px 10px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-2);
}

@media (max-width: 760px) {
  .uslugi-grid { grid-template-columns: 1fr; }
  .uslugi-card { flex-direction: column; gap: 16px; padding: 24px 20px; }
}

/* =========================================================
   REALIZACJE PAGE – GALLERY
   ========================================================= */
.gallery-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.filter-btn {
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--text-2);
  background: var(--bg-card);
  transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  cursor: pointer;
  background: var(--bg-card);
}
.gallery-item.span2 { grid-column: span 2; }
.gallery-thumb {
  position: relative;
  padding-top: 62%;
  overflow: hidden;
}
.gallery-item.span2 .gallery-thumb { padding-top: 50%; }
.gallery-thumb img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover .gallery-thumb img { transform: scale(1.04); }

.gallery-caption {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.gallery-caption-text { }
.gallery-cat-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  display: block;
  margin-bottom: 3px;
}
.gallery-caption-text h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.gallery-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}
.gallery-btn svg { width: 16px; height: 16px; }
.gallery-item:hover .gallery-btn { border-color: var(--accent); color: var(--accent); background: rgba(204,32,32,0.1); }

@media (max-width: 760px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item.span2 { grid-column: span 2; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.span2 { grid-column: span 1; }
}

/* =========================================================
   LIGHTBOX
   ========================================================= */
#lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.94);
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
}
#lightbox.active { display: flex; }
#lightboxClose {
  position: absolute; top: 18px; right: 22px;
  width: 42px; height: 42px;
  background: rgba(255,255,255,0.1);
  color: #fff; border-radius: 50%;
  font-size: 1.5rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.2s; z-index: 1;
}
#lightboxClose:hover { background: var(--accent); }
#lightboxPrev, #lightboxNext {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px;
  background: rgba(255,255,255,0.1); color: #fff;
  border-radius: 50%; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.2s; z-index: 1;
}
#lightboxPrev { left: 18px; }
#lightboxNext { right: 18px; }
#lightboxPrev:hover, #lightboxNext:hover { background: var(--accent); }
.lb-inner { max-width: 90vw; max-height: 90vh; display: flex; flex-direction: column; align-items: center; gap: 12px; }
#lightboxImg { max-width: 88vw; max-height: 80vh; object-fit: contain; border-radius: var(--radius); }
#lightboxCaption { color: rgba(255,255,255,0.6); font-size: 0.85rem; text-align: center; }

/* =========================================================
   O NAS PAGE
   ========================================================= */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.about-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.about-photo img {
  width: 100%; height: 440px;
  object-fit: cover; display: block;
}
.about-content-block { }
.about-content-block .section-sub { margin-bottom: 20px; }
.about-content-block p {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 16px;
}
.about-sep {
  width: 48px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 24px 0;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: all var(--transition);
}
.value-card:hover { border-color: var(--border-s); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.value-num {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--accent);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}
.value-card h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 8px; }
.value-card p { font-size: 0.8rem; color: var(--text-2); line-height: 1.6; }

.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.cert-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: all var(--transition);
}
.cert-item:hover { border-color: var(--accent); }
.cert-dot {
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}
.cert-item h4 { font-size: 0.875rem; font-weight: 700; margin-bottom: 4px; }
.cert-item p { font-size: 0.8rem; color: var(--text-2); line-height: 1.5; }

@media (max-width: 820px) {
  .about-intro { grid-template-columns: 1fr; gap: 40px; }
  .about-photo img { height: 260px; }
  .about-values { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .about-values { grid-template-columns: 1fr; }
}

/* =========================================================
   KARIERA PAGE
   ========================================================= */
.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.job-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
  transition: all var(--transition);
}
.job-card:hover { border-color: var(--border-s); box-shadow: var(--shadow); transform: translateY(-1px); }
.job-card.urgent { border-left: 3px solid var(--accent); }

.job-header { margin-bottom: 10px; }
.job-badges {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px;
}
.badge {
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.badge-accent { background: rgba(204,32,32,0.15); border: 1px solid rgba(204,32,32,0.3); color: var(--accent); }
.badge-red { background: rgba(220,38,38,0.12); border: 1px solid rgba(220,38,38,0.3); color: #ef4444; }
.badge-gray { background: var(--bg-2); border: 1px solid var(--border); color: var(--text-2); }

.job-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.job-card > div > p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 14px;
}
.job-reqs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.job-reqs li {
  font-size: 0.825rem;
  color: var(--text-2);
  padding-left: 14px;
  position: relative;
}
.job-reqs li::before { content: '–'; position: absolute; left: 0; color: var(--accent); }

.job-action { display: flex; align-items: flex-start; justify-content: flex-end; }

.cv-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.cv-box-icon {
  width: 56px; height: 56px;
  background: rgba(204,32,32,0.1);
  border: 1px solid rgba(204,32,32,0.25);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.cv-box-icon svg { width: 28px; height: 28px; }
.cv-box-text { flex: 1; min-width: 200px; }
.cv-box-text h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.cv-box-text p { font-size: 0.875rem; color: var(--text-2); line-height: 1.6; }

@media (max-width: 640px) {
  .job-card { grid-template-columns: 1fr; }
  .job-action { justify-content: flex-start; }
  .cv-box { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
}

/* =========================================================
   KONTAKT PAGE
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: start;
}
.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-tile {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: border-color var(--transition);
}
.contact-tile:hover { border-color: var(--accent); }
.c-icon {
  width: 38px; height: 38px;
  background: rgba(204,32,32,0.1);
  border: 1px solid rgba(204,32,32,0.2);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.c-icon svg { width: 18px; height: 18px; }
.c-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  display: block;
  margin-bottom: 3px;
}
.c-value {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
}
.c-value a { color: var(--text); transition: color var(--transition); }
.c-value a:hover { color: var(--accent); }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 12px;
}
.map-wrap iframe {
  display: block;
  width: 100%; height: 220px;
  filter: saturate(0.75);
}
[data-theme="dark"] .map-wrap iframe {
  filter: invert(0.88) hue-rotate(180deg) saturate(0.35) brightness(0.88);
}

/* Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}
.contact-form h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 24px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-2);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-family: var(--font);
  font-size: 0.875rem;
  color: var(--text);
  outline: none;
  width: 100%;
  transition: border-color var(--transition);
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23cc2020' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 11px;
  padding-right: 32px;
  cursor: pointer;
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-check { flex-direction: row; align-items: flex-start; gap: 10px; }
.form-check input[type="checkbox"] {
  width: 17px; height: 17px;
  accent-color: var(--accent);
  flex-shrink: 0; margin-top: 2px; cursor: pointer;
}
.form-check label {
  font-size: 0.775rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-2);
  line-height: 1.5;
  cursor: pointer;
}
.btn-block { width: 100%; }
.form-feedback {
  margin-top: 12px; padding: 11px 14px;
  border-radius: var(--radius); font-size: 0.85rem;
  font-weight: 500; display: none;
}
.form-feedback.success { display: block; background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.35); color: #22c55e; }
.form-feedback.error { display: block; background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #ef4444; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px 18px; }
}

/* =========================================================
   MOBILE – kompleksowe poprawki
   ========================================================= */

/* Wyłącz parallax na dotykowych – CSS override */
@media (hover: none) {
  .hero-img {
    top: 0 !important;
    bottom: 0 !important;
    transform: none !important;
  }
}

@media (max-width: 640px) {
  /* Ogólne */
  html { font-size: 15px; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 32px; }
  .container { padding: 0 16px; }

  /* Navbar – mniejsza wysokość na mobile */
  :root { --nav-h: 62px; }
  #navbar { height: var(--nav-h); }
  .nav-logo img { height: 28px; }

  /* Page hero (podstrony) */
  .page-hero {
    padding-top: calc(var(--nav-h) + 36px);
    padding-bottom: 36px;
  }
  .page-hero h1 { font-size: clamp(1.8rem, 8vw, 2.4rem); }

  /* Home hero – align do góry na mobile */
  #home-hero {
    align-items: flex-start;
    min-height: 100svh;
  }
  .hero-body {
    padding: calc(var(--nav-h) + 28px) 16px 56px;
  }
  .hero-body h1 { font-size: clamp(2rem, 9vw, 2.6rem); max-width: 100%; }
  .hero-body p  { font-size: 0.925rem; margin-bottom: 28px; max-width: 100%; }
  .hero-eyebrow { font-size: 0.72rem; margin-bottom: 14px; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions .btn { width: 100%; text-align: center; }
  #home-hero::after {
    background: linear-gradient(
      to bottom,
      rgba(0,0,0,0.72) 0%,
      rgba(0,0,0,0.45) 50%,
      rgba(0,0,0,0.25) 100%
    );
  }

  /* Stats bar */
  .stats-bar-inner { grid-template-columns: 1fr 1fr; }
  .stat-item { padding: 22px 12px; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item { border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(3), .stat-item:nth-child(4) { border-bottom: none; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; gap: 12px; }
  .service-card { padding: 24px 20px; }

  /* About teaser */
  .about-teaser { gap: 28px; }
  .about-img-wrap img { height: 220px; }

  /* CTA banner */
  .cta-banner {
    padding: 32px 20px;
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .cta-banner .btn { width: 100%; }

  /* Footer */
  .footer-inner { padding: 40px 16px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-brand p { max-width: 100%; }

  /* Sekcja kontaktowa (stara) */
  .contact-info-block, .contact-form { padding: 20px 16px; }
  .map-wrap iframe { height: 220px; }
}
