:root {
  --primary: #9d2235;
  --primary-dark: #8a1d2d;
  --secondary: #c25f6c;
  --accent: #c25f6c;
  --light: #f5f5f5;
  --dark: #333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background-color: white;
  color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 100;
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}

.logo {
  max-width: 300px;
  height: auto;
  animation: fadeInDown 1s ease-out;
}

.spacing {
  height: 60px;
}

/* ---------- Menu nawigacyjne (czysto CSS) ---------- */
nav {
  background-color: var(--primary);
  position: relative;
}

.nav-container {
  position: relative;
}

.menu-toggle {
  display: none;
}

.menu-toggle-label {
  display: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 15px 20px;
  text-align: right;
  width: 100%;
}

.menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  justify-content: space-around;
  flex-wrap: wrap;
  align-items: center;
}

.menu li {
  position: relative;
  padding: 0;
  margin: 0;
}

.menu li a {
  color: white;
  text-decoration: none;
  padding: 15px;
  display: block;
  transition: background-color 0.3s;
}

.menu li a:hover {
  background-color: var(--primary-dark);
}

.menu li.active a {
  background-color: var(--primary-dark);
  font-weight: bold;
}

/* Style dla podmenu */
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  z-index: 100;
  padding: 0;
  list-style: none;
}

.submenu li {
  width: 100%;
}

.submenu li a {
  color: var(--dark);
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
}

.submenu li a:hover {
  background-color: var(--light);
  color: var(--primary);
}

/* Przyciski do rozwijania podmenu (tylko mobile) */
.submenu-toggle {
  display: none;
}

.submenu-toggle-label {
  display: none;
  position: absolute;
  right: 0;
  top: 0;
  background: transparent;
  border: none;
  color: white;
  font-size: 18px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 0;
  text-align: center;
  line-height: 44px;
}

.has-submenu > a {
  padding-right: 30px;
}

/* Responsywne menu - tylko CSS */
@media (max-width: 768px) {
  .menu-toggle-label {
    display: block;
  }

  .menu {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  #menu-toggle:checked ~ .menu {
    display: flex;
  }

  #menu-toggle:checked ~ .menu-toggle-label::after {
    content: '✕';
  }

  .menu li {
    width: 100%;
    text-align: left;
    border-bottom: 1px solid var(--primary-dark);
  }

  .menu li a {
    padding: 15px;
  }

  /* Podmenu w wersji mobilnej */
  .submenu {
    position: static;
    box-shadow: none;
    background-color: rgba(0, 0, 0, 0.1);
    width: 100%;
  }

  .submenu li a {
    padding-left: 30px;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .submenu-toggle-label {
    display: block;
  }

  .has-submenu > a {
    padding-right: 44px;
  }

  #submenu-1:checked ~ .submenu,
  #submenu-2:checked ~ .submenu {
    display: block;
  }

  #submenu-1:checked ~ .submenu-toggle-label,
  #submenu-2:checked ~ .submenu-toggle-label {
    transform: rotate(45deg);
  }

  .language-switcher {
    border-top: 1px solid var(--primary-dark);
  }
}

@media (min-width: 769px) {
  .menu {
    justify-content: flex-start;
  }
  
  .menu li:not(.language-switcher) {
    flex: 1;
    text-align: center;
  }

  .menu li:hover .submenu {
    display: block;
  }
}

/* Reszta stylów (sekcje, stopka itd.) */
section {
  padding: 20px 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

.mission {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin-bottom: 50px;
}

footer {
  background-color: var(--primary);
  color: white;
  padding: 30px 0;
  text-align: center;
  margin-top: 50px;
}

/* Animacje */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Efekt paralaksy */
.parallax-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.03;
  background: radial-gradient(circle, transparent 20%, var(--light) 20%, var(--light) 80%, transparent 80%, transparent),
    radial-gradient(circle, transparent 20%, var(--light) 20%, var(--light) 80%, transparent 80%, transparent) 50px 50px,
    linear-gradient(var(--primary) 4px, transparent 4px) 0 -2px,
    linear-gradient(90deg, var(--primary) 4px, transparent 4px) -2px 0;
  background-size: 100px 100px, 100px 100px, 50px 50px, 50px 50px;
}

/* Nowe style dla mobile */
.mobile-top-bar {
  display: none;
}

@media (max-width: 768px) {
  .mobile-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary);
  }
  
  .mobile-language-switcher {
    padding: 0 20px;
  }
  
  .mobile-language-switcher a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
  }
  
  .menu-toggle-label {
    padding: 15px 20px;
    margin: 0;
  }
  
  .language-switcher {
    display: none; /* Ukrywamy oryginalną flagę w menu */
  }
}

@media (min-width: 769px) {
  .mobile-top-bar {
    display: none;
  }
  
  .language-switcher {
    display: block;
  }
}

/* Sekcja Zespołu */
.team {
  padding: 40px 0;
  background-color: white;
}

.team .members-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
}

.team .member {
  flex: 0 1 calc(50% - 30px);
  max-width: calc(50% - 30px);
  display: flex;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.team .member:hover {
  transform: translateY(-5px);
}

.team .member-img {
  width: 150px;
  height: 150px;
  overflow: hidden;
}

.team .member-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.team .member:hover .member-img img {
  transform: scale(1.05);
}

.team .member-info {
  padding: 20px;
  flex: 1;
}

.team .member-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.team .member-position {
  color: var(--dark);
  line-height: 1.5;
}

.team .member-position a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.3s;
}

.team .member-position a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Responsywność */
@media (max-width: 768px) {
  .team .member {
    flex: 0 1 100%;
    max-width: 100%;
    flex-direction: column;
  }
  
  .team .member-img {
    width: 100%;
    height: 200px;
  }
  
  .team .members-row {
    gap: 20px;
  }
}

@media (min-width: 1200px) {
  .team .member {
    flex: 0 1 calc(33.333% - 30px);
    max-width: calc(33.333% - 30px);
  }
}
