
:root {
  --bg-dark: #020b1f;
  --bg-darker: #010716;
  --blue-main: #05396b;
  --blue-accent: #1b6fa8;
  --blue-soft: #0b3f66;
  --text-main: #e8f4ff;
  --text-muted: #9bb4d6;
  --accent: #41c5ff;
}

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

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #062448 0, #020818 50%, #00030a 100%);
  color: var(--text-main);
  line-height: 1.7;
  scroll-behavior: smooth;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
} 

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

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

/* FALA – STAŁE TŁO */

.wave-bg {
  position: fixed;
  left: 0;
  right: 0;
  bottom: -6vh;
  height: 40vh;
  opacity: 0.35;
  z-index: -1;
  pointer-events: none;
}

.wave-bg svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* NAVBAR */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 5vw;
  backdrop-filter: blur(12px);
  background: linear-gradient(
    to bottom,
    rgba(0, 4, 15, 0.9),
    rgba(0, 4, 15, 0.7),
    transparent
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #41c5ff, #05396b);
  position: relative;
  overflow: hidden;
}

.brand-logo::before {
  content: "";
  position: absolute;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0.7;
}

.brand-text-main {
  font-weight: 700;
  letter-spacing: 0.2em;
  font-size: 0.95rem;
}

.brand-text-sub {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.nav-links a {
  position: relative;
  padding-bottom: 0.2rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--blue-accent));
  transition: width 0.25s ease-out;
}

.nav-links a:hover::after {
  width: 100%;
}

/* mobile toggle */

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 999px;
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    flex-direction: column;
    background: rgba(0, 4, 15, 0.98);
    padding: 1rem 1.5rem;
    min-width: 200px;
    transform-origin: top right;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0 0 0 1rem;
  }

  .nav-links.open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: flex;
  }
}

/* HERO */

.hero {
  min-height: 100vh;
  padding: 7rem 5vw 5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 3rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 6.5rem;
  }
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at bottom, #05396b33 0, transparent 50%);
  opacity: 0.7;
  pointer-events: none;
}

.hero-main {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: linear-gradient(
    120deg,
    rgba(65, 197, 255, 0.15),
    rgba(11, 63, 102, 0.4),
    rgba(2, 11, 31, 0.9)
  );
  border: 1px solid rgba(65, 197, 255, 0.3);
  margin-bottom: 1rem;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(65, 197, 255, 0.9);
}

.hero-title {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-size: 1.05rem;
  max-width: 32rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.hero-highlight {
  font-weight: 600;
  color: var(--accent);
}

.hero-body {
  font-size: 0.96rem;
  max-width: 36rem;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 1.3rem;
}

.btn-primary,
.btn-ghost {
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out,
    background 0.15s ease-out, border-color 0.15s ease-out;
  background: none;
  color: var(--text-main);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--blue-accent));
  box-shadow: 0 0 24px rgba(65, 197, 255, 0.35);
  border-color: rgba(0, 0, 0, 0.5);
  color: #00111a;
  font-weight: 600;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(65, 197, 255, 0.5);
}

.btn-ghost {
  border-color: rgba(155, 180, 214, 0.35);
  background: linear-gradient(
    135deg,
    rgba(2, 11, 31, 0.7),
    rgba(5, 57, 107, 0.7)
  );
  color: var(--text-main);
}

.btn-ghost:hover {
  transform: translateY(-1px);
  border-color: rgba(65, 197, 255, 0.6);
}

.hero-meta {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-meta-dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(65, 197, 255, 0.7);
}

.hero-visual-wrapper {
  position: relative;
  z-index: 1;
}

.hero-card {
  border-radius: 1.5rem;
  padding: 1.5rem;
  background: radial-gradient(circle at top left, #1b6fa822, #020818ee);
  border: 1px solid rgba(155, 180, 214, 0.18);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.7);
  max-width: 420px;
  margin-left: auto;
}

.hero-card-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.hero-card-main {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.hero-card-line {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
}

.hero-card-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.75rem;
}

.hero-card-badge {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(6, 36, 72, 0.9);
  border: 1px solid rgba(65, 197, 255, 0.25);
  color: var(--text-muted);
}

.hero-card-badge strong {
  color: var(--accent);
  font-weight: 600;
}

/* SEKCJE OGÓLNE */

section {
  padding: 4rem 5vw;
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 2rem;
  text-align: left;
}

.section-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title span {
  color: var(--accent);
}

/* AKTUALNOŚCI */

.news-card {
  border-radius: 1.5rem;
  border: 1px solid rgba(155, 180, 214, 0.18);
  background: radial-gradient(circle at top left, #0b3f6622, #020818ee);
  padding: 1.75rem 1.75rem 1.5rem;
  display: block;
}

.news-logos {
  max-width: 720px;
  margin: 0 auto 2rem;
  display: flex;
  justify-content: center;
}

.news-logos img {
  width: 100%;
  height: auto;
  display: block;
}

.news-content p {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.news-content strong {
  color: var(--text-main);
  font-weight: 600;
}

.news-tags {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* GALERIA */

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

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.gallery-item {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: #020818;
  border: 1px solid rgba(155, 180, 214, 0.18);
  cursor: pointer;
  isolation: isolate;
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease-out, opacity 0.3s ease-out;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top,
    rgba(6, 36, 72, 0.7),
    rgba(0, 4, 15, 0.9)
  );
  opacity: 0;
  transition: opacity 0.3s ease-out;
  pointer-events: none;
}

.gallery-item:hover img {
  transform: scale(1.03);
  opacity: 0.9;
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-caption {
  position: absolute;
  left: 0.9rem;
  bottom: 0.7rem;
  right: 0.9rem;
  z-index: 1;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 5, 20, 0.85);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-out;
  z-index: 9999;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-inner {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 1.2rem;
  overflow: hidden;
  border: 1px solid rgba(155, 180, 214, 0.35);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-inner img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  background: #020818;
}

.lightbox-close {
  position: fixed;
  top: 1.5rem;
  right: 2rem;
  font-size: 1.8rem;
  color: #e8f4ff;
  cursor: pointer;
  user-select: none;
}

/* PRZETARGI */

.tender-card {
  border-radius: 1.5rem;
  border: 1px solid rgba(155, 180, 214, 0.18);
  background: radial-gradient(circle at top left, #0b3f6622, #020818ee);
  padding: 1.75rem 1.75rem 1.5rem;
  font-size: 0.94rem;
  color: var(--text-muted);
}

.tender-card p {
  margin-bottom: 0.7rem;
}

.tender-card strong {
  color: var(--text-main);
  font-weight: 600;
}

.tender-lead {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.tender-formula {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-weight: 500;
}

.tender-attachments {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(155, 180, 214, 0.25);
}

.tender-attachments-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.tender-attachments ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.tender-attachments li {
  margin-bottom: 0.35rem;
}

.tender-attachments a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* KONTAKT / FOOTER */

.contact-block {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 3rem;
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

.contact-col p {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.contact-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.contact-data {
  font-size: 1.05rem;
  font-weight: 500;
}

.contact-data a {
  color: var(--accent);
}

.footer {
  padding: 2rem 5vw 2.5rem;
  border-top: 1px solid rgba(155, 180, 214, 0.15);
  background: linear-gradient(
    to top,
    rgba(0, 4, 15, 0.9),
    rgba(0, 4, 15, 0.3),
    transparent
  );
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-right {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.4rem;
  }
}