/* -----------------------------------
   RESET & PODSTAWY
----------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #ffffff;
  color: #222;
  line-height: 1.6;
}



/* -----------------------------------
   ZMIENNE KOLORÓW
----------------------------------- */
:root {
  --accent: #F97316;
  /* pomarańcz */
  --accent-hover: #EA580C;

  --nav-bg: #0F1D36;
  /* bardzo ciemny granat */
  --hero-bg: #10203D;
  /* tło hero (ciemniejsze) */
  --section-bg: #F3F4F6;
  /* jasne sekcje */

  --section-white: #fcfcfc;
  --section-gray: #e6eaf2;

  --text-main: #F9FAFB;
  /* prawie białe */
  --text-muted: #CBD5E1;
  /* jasnoszare */

  --card-bg: #FFFFFF;
  /* karty białe */
  --border: #E5E7EB;

  --radius: 16px;
  --radius-lg: 22px;
}



/* -----------------------------------
   GLOBALNE ELEMENTY
----------------------------------- */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 26px;
}

section {
  margin-top: 60px;
}

img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
}



/* -----------------------------------
   NAWIGACJA
----------------------------------- */
.nav {
  background: var(--nav-bg);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  padding: 0px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo {
  width: auto;
  height: 100px;
  border-radius: var(--radius);
  object-fit: contain;
}

.brand {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-main);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.cta-nav {
  background: var(--accent);
  color: #fff;
  padding: 8px 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.cta-nav:hover {
  background: var(--accent-hover);
}



/* -----------------------------------
   HERO
----------------------------------- */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  padding-top: 40px;
  background: var(--hero-bg);
  color: var(--text-main);
  padding: 80px 40px;
  border-radius: var(--radius-lg);
}

.hero-left {
  flex: 1;
}

.hero-right {
  flex: 1;
}

.hero-title {
  font-size: 2.7rem;
  line-height: 1.2;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
}

.accent {
  color: var(--accent);
}

.hero-text {
  max-width: 600px;
  color: var(--text-muted);
  margin-bottom: 30px;
  font-size: 1.05rem;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-primary {
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  padding: 12px 28px;
  font-weight: 600;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: 0.2s;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  padding: 12px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-light);
  transition: 0.2s;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}



/* -----------------------------------
   SEKCJE
----------------------------------- */
.section {
  background: var(--hero-bg);
  /* ciemna sekcja */
  color: var(--text-main);
  /* białawy tekst */
  border-radius: var(--radius-lg);
  padding: 60px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 700px;
}



/* -----------------------------------
   USŁUGI – KARTY
----------------------------------- */
.cards {
  margin-top: 36px;
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(3, 1fr); /* dokładnie 3 kolumny */
}

.card {
  background: var(--bg-gray);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  color: var(--text-main);
}

.card p {
  font-size: 0.98rem;
  color: var(--text-muted);
}



/* -----------------------------------
   O NAS
----------------------------------- */
.about {
  margin-top: 32px;
}

.about-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 800px;
}



/* -----------------------------------
   PROJEKTY
----------------------------------- */
/* .projects {
  margin-top: 36px;
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.project {
  background: var(--bg-gray);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  transition: 0.25s;
}

.project:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.08);
}

.project img {
  border-radius: var(--radius);
  margin-bottom: 14px;
}

.project h3 {
  margin-bottom: 6px;
  font-size: 1.15rem;
  color: var(--text-main);
}

.project p {
  color: var(--text-muted);
} */



/* -----------------------------------
   ZESPÓŁ
----------------------------------- */
.team {
  margin-top: 36px;
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.team-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  background: var(--bg-gray);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: 0.25s;
}

.team-card:hover {
  transform: translateY(-4px);
}

.team-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
}



/* -----------------------------------
   KONTAKT
----------------------------------- */
#kontakt p {
  font-size: 1.05rem;
  margin-bottom: 6px;
}



/* -----------------------------------
   STOPKA
----------------------------------- */
.footer {
  text-align: center;
  padding: 30px 0;
  margin-top: 50px;
  font-size: 0.95rem;
  color: var(--text-muted);
}


/* ANIMACJE FADE-IN */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
  
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}


/* --- DANE KONTAKTOWE W JEDNEJ KOLUMNIE --- */

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.contact-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contact-label {
  width: 60px;
  /* SZEROKOŚĆ KOLUMNY Z ETYKIETAMI */
  font-weight: 600;
  color: var(--text-main);
}

.contact-value {
  flex: 1;
  color: var(--text-muted);
}




/* -----------------------------------
   NAPRZEMIENNE SEKCJE – JASNA KOLORYSTYKA
----------------------------------- */

/* Sekcja biała */
.section:nth-of-type(odd) {
  background: var(--section-white);
  color: #1f2937;
}

.section:nth-of-type(odd) .section-title {
  color: #1f2937;
}

.section:nth-of-type(odd) p {
  color: #4b5563; /* średni szary – lepsza czytelność */
}

/* Sekcja jasnoszara */
.section:nth-of-type(even) {
  background: var(--section-gray);
  color: #1f2937;
}

.section:nth-of-type(even) .section-title {
  color: #1f2937;
}

.section:nth-of-type(even) p {
  color: #4b5563;
}

/* Karty w jasnych sekcjach */
.section .card {
  background: white;
  color: #1f2937;
  box-shadow: rgba(0,0,0,0.06) 0 4px 12px;
}

.section .card h3 {
  color: #1f2937;
}

.section .card p {
  color: #4b5563;
}

/* Usuwamy ciemne tło narzucone wcześniej na wszystkie sekcje */
.section {
  background: transparent;
  box-shadow: none;
  color: inherit;
}

/* --- KONTRAST TEKSTU W ZESPOLE --- */
.team-card *,
.team-card h3,
.team-card p {
  color: #1f2937 !important; /* ciemny tekst */
}

/* --- KONTRAST TEKSTU W KONTAKCIE --- */
#kontakt,
#kontakt p,
#kontakt span,
#kontakt .contact-label,
#kontakt .contact-value {
  color: #1f2937 !important; /* czytelny, ciemny tekst */
}

.team-card {
  background: #ffffff !important;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
} 


/* --- ZESPÓŁ — UKŁAD 2x2 --- */
.team {
  display: grid;
  grid-template-columns: repeat(2, 1fr);  /* 2 kolumny */
  gap: 26px 32px;                         /* odstępy pion/poziom */
  margin-top: 36px;
}

/* Karta zespołu — utrzymanie stylu */
.team-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  border: 1px solid #ececec;
}

/* Avatar */
.team-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
}

/* Teksty */
.team-card * {
  color: #1f2937 !important;
  font-weight: 600;
}

/* MEDIA QUERY – układ jednokolumnowy na urządzeniach mobilnych */
@media (max-width: 820px) {
  .team {
    grid-template-columns: 1fr; /* 1 kolumna na telefonach/tabletach */
  }
}


@media (max-width: 1024px) {
  .cards {
    grid-template-columns: repeat(2, 1fr); /* tablet: 2 w rzędzie */
  }
}

@media (max-width: 640px) {
  .cards {
    grid-template-columns: 1fr;            /* telefon: 1 w rzędzie */
  }
}


/* ============================
   KARTY KONTAKTOWE
============================ */

.contact-cards {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.contact-card {
  background: #ffffff;
  padding: 26px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: 0.25s;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.12);
}

.contact-card h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  color: #1f2937;
  font-weight: 700;
}

.contact-card p {
  color: #4b5563;
  font-size: 0.98rem;
  margin-bottom: 6px;
}

/* Mobile responsiveness */
@media (max-width: 900px) {
  .contact-cards {
    grid-template-columns: 1fr;
  }
}





/* ==================================
   FINALNY MOBILE FIX (768px)
================================== */

@media (max-width: 768px) {

  /* NAVBAR */
  .nav-inner {
    padding: 8px 16px !important;
  }

  .logo {
    height: 50px !important;
    width: auto !important;
  }

  /* Ukryj linki w wersji mobilnej */
  .nav-links {
    display: none !important;
    flex-direction: column;
    background: var(--nav-bg);
    position: absolute;
    top: 70px;
    right: 16px;
    width: 200px;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    gap: 12px;
    z-index: 9999;
  }

  /* Po kliknięciu hamburgera */
  .nav-links.active {
    display: flex !important;
  }

  /* Hamburger */
  .hamburger {
    display: flex !important;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
  }

  .hamburger span {
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 4px;
  }

  /* Przyciski w menu */
  .cta-nav {
    display: block;
    margin-top: 6px;
    text-align: center;
  }


  /* HERO */
  .hero {
    flex-direction: column;
    text-align: left;
    padding: 40px 20px !important;
    gap: 25px;
  }

  .hero-title {
    font-size: 1.9rem !important;
    line-height: 1.25 !important;
  }

  .hero-text {
    font-size: 1rem !important;
  }

  .hero-right img {
    max-width: 100%;
    border-radius: 14px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
    padding: 14px;
    font-size: 1.1rem;
  }


  /* SEKCJE (padding + brak zaokrągleń na mobilu) */
  .section {
    padding: 40px 20px !important;
    border-radius: 0 !important;
  }

  .section-title {
    font-size: 1.7rem !important;
  }


  /* USŁUGI (karty 1 kolumna) */
  .cards {
    grid-template-columns: 1fr !important;
  }

  /* ZESPÓŁ (jedna kolumna) */
  .team {
    grid-template-columns: 1fr !important;
  }

  /* KONTAKT (jedna kolumna) */
  .contact-cards {
    grid-template-columns: 1fr !important;
  }

  /* Ogólna kompresja kart */
  .card, 
  .team-card,
  .contact-card {
    padding: 20px !important;
  }
}

