:root {
  --accent: #ff2d55;
  --bg-dark: #0a0a0c;
  --text-light: #fff;
  --text-muted: #b3b3b3;
}

/* Podstawy */
body {
  background: var(--bg-dark);
  color: var(--text-light);
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
}

/* Nagłówek strony */
.team-header {
  text-align: center;
  padding: 100px 20px 60px;
  background: linear-gradient(180deg, #101013, #0a0a0c);
}

.team-header h1 {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 15px;
}

.team-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Sekcja zarząd i członkowie */
.zarzad, .czlonkowie {
  text-align: center;
  padding: 60px 20px;
}

.zarzad h2, .czlonkowie h2 {
  color: var(--accent);
  font-size: 2rem;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.team-grid .piotr {
  grid-column: 2 / span 1; /* ustawia go w środkowej kolumnie */
}

.team-card {
  background: #141417;
  border-radius: 15px;
  padding: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(255,45,85,0.1);
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px rgba(255,45,85,0.3);
}

.team-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.team-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

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

/* Responsywność */
@media (max-width: 900px) {
  .team-header h1 {
    font-size: 2rem;
  }
  .team-grid {
    gap: 20px;
  }
  .team-card img {
    height: 220px;
  }
}

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #0a0a0c;
  padding: 0.8rem 1rem;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(255,45,85,0.2);
}

.nav-toggle {
  display: none; /* ukryj hamburger na desktopie */
}


/* kontener */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transform: translateX(-90px); /* przesunięcie tylko desktop */
}

/* Logo */
.nav-logo img {
  height: 115px;
  display: block;
}

/* Menu linków */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  justify-content: center;
  align-items: center;
}

.nav-item .nav-link {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-family: "Montserrat", sans-serif;
  font-size: 1.05rem;
  transition: color 0.3s;
}

.nav-item .nav-link:hover {
  color: #ff2a55;
}

/* === MOBILE STYLES === */
@media (max-width: 900px) {

  /* navbar pozostaje taki sam — zawsze fixed */
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #0a0a0c;
    padding: 0.8rem 1rem;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(255,45,85,0.2);
  }

  .nav-container {
    justify-content: space-between;
    transform: none; /* bez przesunięcia na mobile */
  }

  /* przesunięcie logo i hamburgera */
  .nav-logo {
	display: block;
    margin-left: -140px; /* logo trochę w lewo */
  }

  .nav-toggle {
    display: block;
    margin-right: -150px; /* burger trochę w prawo */
  }

  .nav-menu {
    position: fixed;
    top: 115px; /* poniżej paska */
    left: -35px;
    width: 100%;
    background: #0a0a0c;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    z-index: 999;
  }

  .nav-menu.active {
    max-height: 60vh; /* rozwinięcie */
  }

  .nav-item {
    padding: 1rem 0;
    text-align: center;
  }

  .nav-link {
    font-size: 1.1rem;
  }
}

/* desktopowa wysokość navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 130px; /* STAŁA wysokość */
  background: #0a0a0c;
  padding: 0; /* usuń zmienne paddingi */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(255,45,85,0.2);
}

/* Margines, by treść nie chowała się pod navbar */
body {
  padding-top: 130px;

}