/* --- Globalne Style i Reset --- */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");

:root {
  /* --- Nowa Paleta Kolorów: Żółto-Pomarańczowo-Biała --- */
  --primary-color: #FFA500; /* Główny pomarańczowy */
  --secondary-color: #FFC107; /* Drugi żółty/złoty */
  --accent-color: #FFD700; /* Akcent - jaśniejszy złoty/żółty */
  --background-dark: #1a1a1a; /* Bardzo ciemne tło dla kontrastu */
  --background-light: #2c2c2c; /* Jaśniejsze tło (karty itp.) */
  --text-primary: #f0f0f0; /* Główny jasny tekst (lekko złamana biel) */
  --text-secondary: #b0b0b0; /* Drugorzędny szary tekst */
  --text-light: #ffffff; /* Czysta biel */
  --border-color: rgba(255, 255, 255, 0.15); /* Jaśniejszy border */
  --success-color: #28a745; /* Zielony dla sukcesu/online */
  --danger-color: #dc3545; /* Czerwony dla błędu/offline */
  --warning-color: #ffc107; /* Żółty/pomarańczowy dla ostrzeżenia */
  --shadow-color: rgba(0, 0, 0, 0.3); /* Cień ciemniejszy */
  --shadow-light: rgba(0, 0, 0, 0.15);
  --shadow-strong: rgba(0, 0, 0, 0.4);
  /* Gradienty z nowymi kolorami */
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);

  /* Zachowane zmienne strukturalne */
  --font-primary: "Poppins", sans-serif;
  --container-width: 1200px;
  --header-height: 70px;
  --border-radius-small: 6px;
  --border-radius-medium: 12px;
  --border-radius-large: 20px;
  --transition-fast: 0.2s ease-in-out;
  --transition-medium: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-color) var(--background-dark); /* Dostosowany scrollbar */
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--background-dark);
}
::-webkit-scrollbar-thumb {
  background-color: var(--accent-color); /* Dostosowany scrollbar */
  border-radius: 10px;
  border: 2px solid var(--background-dark);
}

body {
  font-family: var(--font-primary);
  background-color: var(--background-dark);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

.container {
  max-width: var(--container-width);
  width: 90%;
  margin: 0 auto;
  padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-light);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75em;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }

p {
  color: var(--text-secondary);
  margin-bottom: 1em;
}

a {
  color: var(--accent-color); /* Linki w kolorze akcentu */
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--secondary-color); /* Jaśniejszy żółty przy najechaniu */
}

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

ul {
  list-style: none;
}

.section-padding {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-accent); /* Gradient akcentu */
    border-radius: 2px;
}

.section-header p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
}

/* --- Przyciski --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: var(--border-radius-medium);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-medium);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px var(--shadow-light);
}

.btn i {
  font-size: 1.1em;
}

.btn-primary {
  background: var(--gradient-accent); /* Gradient akcentu */
  color: var(--background-dark); /* Ciemny tekst dla kontrastu */
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 165, 0, 0.4); /* Pomarańczowy cień */
  color: var(--background-dark);
  filter: brightness(1.1);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-color); /* Kolor akcentu */
  border: 2px solid var(--accent-color); /* Obramowanie akcentu */
}

.btn-secondary:hover {
  background: var(--accent-color); /* Tło akcentu */
  color: var(--background-dark); /* Ciemny tekst */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3); /* Złoty cień */
}

.btn-small {
    padding: 8px 18px;
    font-size: 0.9rem;
}

.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--background-light);
    color: var(--text-secondary);
    border-color: var(--text-secondary);
    box-shadow: none;
}

.btn.disabled:hover {
    transform: none;
    box-shadow: none;
}


/* --- Nagłówek --- */
header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(26, 26, 26, 0.85); /* Ciemniejsze tło nagłówka */
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px var(--shadow-light);
  height: var(--header-height);
  transition: background-color var(--transition-medium);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-light);
  letter-spacing: 1px;
}

.logo .highlight {
  color: var(--accent-color); /* Kolor akcentu */
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links li a {
  color: var(--text-primary);
  font-weight: 500;
  padding: 10px 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color); /* Podkreślenie akcentu */
  transition: width var(--transition-medium);
}

.nav-links li a:hover {
  color: var(--accent-color); /* Kolor akcentu */
}

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

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

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 215, 0, 0.1); /* Tło statusu z akcentem */
  padding: 8px 15px;
  border-radius: var(--border-radius-large);
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 215, 0, 0.2); /* Obramowanie statusu z akcentem */
  color: var(--text-primary); /* Jasny tekst */
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transition: background-color var(--transition-medium);
}

/* Kolory statusu bez zmian */
.status-dot.online {
  background-color: var(--success-color);
  animation: pulse-green 2s infinite;
}
.status-dot.offline {
  background-color: var(--danger-color);
}
@keyframes pulse-green { /* Zmieniono nazwę */
  0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(40, 167, 69, 0); }
  100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

.menu-toggle {
  display: none;
  cursor: pointer;
  color: var(--text-light);
  font-size: 1.8rem;
}


/* --- Sekcja Hero --- */
.hero {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--background-dark);
  padding: 100px 0;
}

.hero-background-shapes {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden; z-index: 0;
}
.shape {
    position: absolute; border-radius: 50%;
    background: var(--gradient-primary); /* Gradient podstawowy */
    opacity: 0.08; /* Jeszcze subtelniejsze */
    filter: blur(60px); /* Większe rozmycie */
    animation: float 15s ease-in-out infinite alternate;
}
.shape-1 { width: 400px; height: 400px; top: 10%; left: 5%; animation-delay: 0s; }
.shape-2 { width: 300px; height: 300px; bottom: 15%; right: 10%; animation-delay: 3s; background: var(--gradient-accent); /* Gradient akcentu */}
.shape-3 { width: 200px; height: 200px; top: 50%; left: 40%; transform: translateY(-50%); animation-delay: 6s; }
@keyframes float { /* Bez zmian */
    0% { transform: translateY(0px) translateX(0px) scale(1); }
    100% { transform: translateY(-30px) translateX(20px) scale(1.1); }
}

.hero .container {
    display: flex; justify-content: space-between; align-items: center;
    gap: 40px; position: relative; z-index: 1;
}
.hero-content { flex: 1; max-width: 600px; }
.hero h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 20px; line-height: 1.2; }
.gradient-text { /* Użycie gradientu akcentu */
  background: var(--gradient-accent);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; text-fill-color: transparent;
  display: inline-block;
}
.hero p { font-size: 1.1rem; margin-bottom: 40px; max-width: 500px; }
.hero-buttons { display: flex; gap: 15px; }
.hero-image { flex: 1; max-width: 500px; display: flex; justify-content: center; align-items: center; }
.hero-image img {
    width: 100%;
    /* Dostosowany cień obrazka */
    filter: drop-shadow(0 10px 30px rgba(255, 165, 0, 0.25));
    animation: subtle-float 6s ease-in-out infinite;
}
@keyframes subtle-float { /* Bez zmian */
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}


/* --- Sekcja Tryby --- */
.modes-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.mode-card {
  background: var(--background-light); padding: 35px;
  border-radius: var(--border-radius-large); text-align: center;
  border: 1px solid var(--border-color);
  box-shadow: 0 5px 20px var(--shadow-light); /* Zmieniono cień */
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  display: flex; flex-direction: column; justify-content: space-between;
}
.mode-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px var(--shadow-color); } /* Zmieniono cień */
.mode-icon {
    font-size: 3rem; color: var(--accent-color); /* Kolor akcentu */
    margin-bottom: 20px; line-height: 1;
}
.mode-card h3 { color: var(--text-light); font-size: 1.4rem; margin-bottom: 15px; }
.mode-card p { margin-bottom: 25px; flex-grow: 1; }
.mode-card .btn { margin-top: auto; }

/* --- Sekcja Zarząd --- */
.team-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; justify-content: center; }
.team-member {
  background: var(--background-light); padding: 30px;
  border-radius: var(--border-radius-large); text-align: center;
  border: 1px solid var(--border-color);
  box-shadow: 0 5px 20px var(--shadow-light);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}
.team-member:hover { transform: translateY(-10px); box-shadow: 0 15px 30px var(--shadow-color); }
.team-member-img-wrapper {
    width: 120px; height: 120px; border-radius: 50%;
    margin: 0 auto 25px auto; overflow: hidden;
    border: 4px solid var(--accent-color); /* Obramowanie akcentu */
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4); /* Złoty cień */
}
.team-member img { width: 100%; height: 100%; object-fit: cover; }
.team-member h3 { font-size: 1.3rem; margin-bottom: 5px; }
.team-member span { display: block; color: var(--accent-color); /* Kolor akcentu */ font-weight: 500; margin-bottom: 15px; font-size: 0.95rem; }
.social-links { display: flex; justify-content: center; gap: 15px; }
.social-links a { color: var(--text-secondary); font-size: 1.4rem; transition: color var(--transition-fast), transform var(--transition-fast); }
.social-links a:hover { color: var(--accent-color); /* Kolor akcentu */ transform: scale(1.2); }

/* --- Sekcja O Nas --- */
.about-content { display: flex; align-items: center; gap: 50px; }
.about-text { flex: 1; }
.about-text h2 { margin-bottom: 25px; }
.about-image { flex: 1; max-width: 500px; }
.about-image img { border-radius: var(--border-radius-large); box-shadow: 0 10px 30px var(--shadow-color); border: 5px solid var(--background-light); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 25px; margin-top: 40px; }
.stat-item {
  background: var(--background-light); padding: 25px;
  border-radius: var(--border-radius-medium); text-align: center;
  border: 1px solid var(--border-color);
  transition: transform var(--transition-medium);
}
.stat-item:hover { transform: scale(1.05); }
.stat-item i {
    font-size: 2.5rem; color: var(--accent-color); /* Kolor akcentu */
    margin-bottom: 15px; display: block;
}
.stat-item h3 { font-size: 2rem; color: var(--text-light); margin-bottom: 5px; }
.stat-item p { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 0; font-weight: 500; }

/* --- Przycisk Powrotu na Górę --- */
.back-to-top-btn {
    position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px;
    background: var(--accent-color); /* Kolor akcentu */
    color: var(--background-dark); /* Ciemny tekst */
    border-radius: 50%; display: flex; justify-content: center; align-items: center;
    font-size: 1.5rem; box-shadow: 0 4px 10px rgba(255, 165, 0, 0.4); /* Pomarańczowy cień */
    opacity: 0; visibility: hidden; transform: translateY(20px);
    transition: opacity var(--transition-medium), visibility var(--transition-medium), transform var(--transition-medium), background-color var(--transition-medium);
    z-index: 999;
}
.back-to-top-btn.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top-btn:hover {
    background: var(--primary-color); /* Ciemniejszy pomarańczowy */
    color: var(--text-light); /* Jasny tekst */
    transform: scale(1.1);
}

/* --- Toast Notification --- */
/* Style toast bez zmian kolorów tła (success/error) */
.toast {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
    padding: 15px 25px; border-radius: var(--border-radius-small);
    box-shadow: 0 5px 15px var(--shadow-color); color: var(--text-light);
    font-weight: 500; opacity: 0; visibility: hidden;
    transition: opacity var(--transition-slow), visibility var(--transition-slow), bottom var(--transition-slow);
    z-index: 1001; min-width: 250px; text-align: center;
}
.toast.show { opacity: 1; visibility: visible; bottom: 90px; }
.toast.success { background-color: var(--success-color); }
.toast.error { background-color: var(--danger-color); }


/* --- Responsywność (Bez zmian w logice) --- */
@media (max-width: 992px) {
  .container { width: 95%; }
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2rem; }
  .hero .container { flex-direction: column; text-align: center; }
  .hero-content { max-width: 100%; order: 2; }
  .hero-image { max-width: 400px; order: 1; margin-bottom: 40px; }
  .hero h1 { font-size: 3rem; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .about-content { flex-direction: column; }
  .about-image { margin-bottom: 40px; max-width: 400px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 768px) {
  :root { --header-height: 60px; }
  header { height: var(--header-height); }
  .menu-toggle { display: flex; align-items: center; }
  .nav-right { display: none; }
  .nav-links {
    display: none; position: absolute; top: var(--header-height); left: 0; width: 100%;
    background: var(--background-light); flex-direction: column; align-items: center;
    padding: 30px 0; box-shadow: 0 10px 20px var(--shadow-color); border-top: 1px solid var(--border-color); z-index: 999;
  }
  .nav-links.active { display: flex; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links li a { padding: 15px 0; display: block; width: 100%; }
   .nav-links li a::after { display: none; }
  h1 { font-size: 2.5rem; } h2 { font-size: 1.8rem; }
  .section-padding { padding: 60px 0; }
  .section-header { margin-bottom: 40px; }
  .modes-container, .team-container, .stats { grid-template-columns: 1fr; }
   /* Footer responsive from second block */
   .footer-grid { grid-template-columns: 1fr; text-align: center; }
   .footer-col h4 { display: inline-block; }
   .footer-socials { justify-content: center; }
   .newsletter-form { justify-content: center; }
   .newsletter-form input[type="email"] { max-width: 300px; flex-grow: 0; }
   .newsletter-form .btn { flex-shrink: 1; }
   .toast.show { bottom: 30px; }
   .back-to-top-btn { width: 45px; height: 45px; font-size: 1.3rem; }
}

@media (max-width: 576px) {
    h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .hero-buttons { flex-direction: column; gap: 10px; align-items: center; }
    .btn { padding: 10px 20px; font-size: 0.9rem; width: 80%; max-width: 300px; }
    .mode-card, .team-member, .stat-item { padding: 25px; }
    /* Footer responsive from second block */
    .footer-col { margin-bottom: 30px; } .footer-grid { gap: 30px; }
    .newsletter-form { flex-direction: column; align-items: center; }
    .newsletter-form input[type="email"] { width: 100%; max-width: 350px; }
    .newsletter-form .btn { width: 100%; max-width: 350px; }
}

/* ------------------------------------------------------ */
/* --- SECOND DEFINITION OF STYLES STARTS HERE --- */
/* ------------------------------------------------------ */


/* --- Globalne Style i Reset --- */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800;900&display=swap"); /* Dodano wagę 900 */

:root {
  /* Paleta Kolorów: Żółto-Pomarańczowo-Biała na ciemnym tle */
  --primary-color: #FFA500; /* Pomarańczowy */
  --secondary-color: #FFC107; /* Żółty/Złoty */
  --accent-color: #FFD700; /* Jaśniejszy Złoty/Żółty */
  --background-dark: #0d0d0d; /* Bardzo ciemny, prawie czarny */
  --background-light: #1f1f1f; /* Ciemnoszary dla kart/sekcji */
  --background-medium: #151515; /* Pośredni ciemny */
  --text-primary: #e0e0e0; /* Jasnoszary */
  --text-secondary: #a0a0a0; /* Ciemniejszy szary */
  --text-light: #ffffff; /* Biały */
  --border-color: rgba(255, 255, 255, 0.1); /* Subtelny jasny border */
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --shadow-color: rgba(0, 0, 0, 0.5); /* Mocniejszy cień */
  --shadow-light: rgba(0, 0, 0, 0.25);
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);

  /* Zmienne strukturalne */
  --font-primary: "Poppins", sans-serif;
  --container-width: 1140px; /* Standardowy kontener */
  --header-height: 70px;
  --border-radius-small: 4px;
  --border-radius-medium: 6px; /* Mniejsze zaokrąglenia */
  --border-radius-large: 8px;
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--accent-color) var(--background-dark); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--background-dark); }
::-webkit-scrollbar-thumb { background-color: var(--accent-color); border-radius: 4px; }

body { font-family: var(--font-primary); background-color: var(--background-dark); color: var(--text-primary); line-height: 1.7; font-size: 16px; overflow-x: hidden; }
.container { max-width: var(--container-width); width: 90%; margin: 0 auto; padding: 0 15px; }
h1, h2, h3, h4, h5, h6 { color: var(--text-light); font-weight: 800; /* Grubsze nagłówki */ line-height: 1.2; margin-bottom: 0.8em; text-transform: uppercase; /* Wielkie litery */ letter-spacing: 0.5px; }
h1 { font-size: 3.5rem; font-weight: 900; /* Najgrubszy */ }
h2 { font-size: 2.8rem; }
h3 { font-size: 1.5rem; font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }
p { color: var(--text-secondary); margin-bottom: 1.3em; font-size: 1rem; /* Standardowy rozmiar */ line-height: 1.8; }
a { color: var(--accent-color); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--secondary-color); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.section-padding { padding: 90px 0; } /* Standardowy padding */
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { position: relative; display: inline-block; padding-bottom: 15px; margin-bottom: 15px; border-bottom: 3px solid var(--accent-color); /* Wyraźniejsza linia */ }
.section-header h2::after { display: none; /* Usunięcie gradientowej linii */ }
.section-header p { max-width: 700px; margin-left: auto; margin-right: auto; font-size: 1.1rem; color: var(--text-primary); /* Jaśniejszy tekst pod nagłówkiem */ opacity: 0.9; }
.text-center { text-align: center; }
.justify-center { justify-content: center; }

/* --- Przyciski --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 30px; border: 2px solid transparent; /* Dodano border dla spójności */ border-radius: var(--border-radius-medium); font-weight: 700; /* Grubszy font */ font-size: 1rem; cursor: pointer; transition: all var(--transition-fast); text-decoration: none; text-transform: uppercase; letter-spacing: 1px; /* Większy odstęp */ box-shadow: 0 4px 10px var(--shadow-light); }
.btn i { font-size: 1.1em; transition: transform var(--transition-fast); }
.btn:hover { transform: translateY(-3px); } /* Subtelniejszy hover */
.btn:hover i { transform: translateX(2px); }
.btn-lg { padding: 15px 35px; font-size: 1.1rem; }
.btn-primary { background: var(--gradient-accent); color: var(--background-dark); border-color: var(--accent-color); }
.btn-primary:hover { box-shadow: 0 8px 20px rgba(255, 165, 0, 0.4); filter: brightness(1.1); }
.btn-secondary { background: transparent; color: var(--accent-color); border-color: var(--accent-color); }
.btn-secondary:hover { background: var(--accent-color); color: var(--background-dark); box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3); }
.btn-small { padding: 8px 18px; font-size: 0.9rem; font-weight: 600; }
.btn.disabled { opacity: 0.5; cursor: not-allowed; background: var(--background-light); color: var(--text-secondary); border-color: var(--border-color); box-shadow: none; }
.btn.disabled:hover { transform: none; background: var(--background-light); border-color: var(--border-color); }

/* --- Nagłówek --- */
header { position: sticky; top: 0; left: 0; width: 100%; z-index: 1000; background: rgba(13, 13, 13, 0.8); /* Ciemniejsze, mniej przezroczyste */ backdrop-filter: blur(10px); box-shadow: 0 2px 8px var(--shadow-light); height: var(--header-height); transition: background-color var(--transition-medium); border-bottom: 1px solid var(--border-color); }
nav { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.logo { font-size: 1.8rem; font-weight: 900; /* Najgrubszy */ color: var(--text-light); letter-spacing: 1px; transition: transform var(--transition-fast); }
.logo:hover { transform: scale(1.03); }
.logo .highlight { color: var(--accent-color); }
.nav-links { display: flex; list-style: none; gap: 30px; }
.nav-links li a { color: var(--text-primary); font-weight: 600; /* Grubsze linki */ padding: 5px 0; position: relative; transition: color var(--transition-fast); overflow: hidden; text-transform: uppercase; /* Wielkie litery */ font-size: 0.9rem; /* Mniejsza czcionka */ letter-spacing: 0.5px; }
.nav-links li a::after { content: ''; position: absolute; bottom: -2px; /* Lekko pod tekstem */ left: 0; width: 100%; height: 2px; background: var(--accent-color); transform: scaleX(0); /* Skalowanie od środka */ transform-origin: center; transition: transform var(--transition-medium); }
.nav-links li a:hover { color: var(--accent-color); }
.nav-links li a:hover::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 15px; }
.status-indicator { display: flex; align-items: center; gap: 8px; background: var(--background-light); padding: 6px 12px; border-radius: var(--border-radius-medium); border: 1px solid var(--border-color); }
#status-light { width: 10px; height: 10px; border-radius: 50%; transition: background-color var(--transition-medium), box-shadow var(--transition-medium); }
#status-light.status-light-online { background-color: var(--success-color); box-shadow: 0 0 8px 1px var(--success-color); }
#status-light.status-light-offline { background-color: #666; /* Szary dla offline */ box-shadow: none; }
#status-light.status-light-error { background-color: var(--danger-color); box-shadow: 0 0 8px 1px var(--danger-color); }
#online-count { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
.menu-toggle { display: none; cursor: pointer; color: var(--text-light); font-size: 1.6rem; background: none; border: none; padding: 5px; }

/* --- Sekcja Hero (Strona główna) --- */
.hero { min-height: 85vh; display: flex; align-items: center; position: relative; overflow: hidden; background: var(--background-dark); padding: 60px 0 100px; border-bottom: 1px solid var(--border-color); }
.hero-background-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; z-index: 0; }
.hero-background-video video { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(13, 13, 13, 0.7); z-index: 1; }
.hero-container { position: relative; z-index: 2; }
.hero-content { max-width: 800px; margin: 0 auto; }
.hero h1 { font-size: 4rem; font-weight: 900; margin-bottom: 20px; line-height: 1.1; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.gradient-text { background: var(--gradient-accent); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-fill-color: transparent; display: inline-block; }
.hero p { font-size: 1.2rem; margin-bottom: 35px; max-width: 600px; margin-left: auto; margin-right: auto; color: var(--text-primary); opacity: 0.9; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 15px; }
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-visual img { width: 100%; max-width: 550px; filter: drop-shadow(0 15px 35px rgba(255, 165, 0, 0.2)); animation: subtle-float 7s ease-in-out infinite; border-radius: var(--border-radius-medium); }
@keyframes subtle-float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-12px); } }

/* --- Sekcja Hero (Podstrony np. Regulamin) --- */
.subpage-hero {
  min-height: auto; /* Mniejsze hero dla podstron */
  padding: 80px 0 60px; /* Mniejszy padding */
  background: var(--background-medium); /* Inne tło */
}
.subpage-hero .hero-overlay { background: rgba(21, 21, 21, 0.5); } /* Jaśniejsza nakładka */
.subpage-hero h1 { font-size: 2.8rem; }
.subpage-hero p { font-size: 1.1rem; max-width: 700px; }

/* --- Sekcja Tryby --- */
.tryby { background-color: var(--background-medium); }
.modes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.mode-card { background: var(--background-light); padding: 25px; border-radius: var(--border-radius-medium); border: 1px solid var(--border-color); box-shadow: 0 4px 15px var(--shadow-light); transition: transform var(--transition-medium), box-shadow var(--transition-medium), border-color var(--transition-medium); display: flex; flex-direction: column; text-align: left; position: relative; overflow: hidden; }
.mode-card:hover { transform: translateY(-6px); box-shadow: 0 10px 25px var(--shadow-color); border-color: var(--accent-color); }
.mode-card-icon { font-size: 2.2rem; color: var(--accent-color); margin-bottom: 18px; line-height: 1; width: 50px; height: 50px; background: rgba(255, 215, 0, 0.08); border-radius: var(--border-radius-small); display: flex; align-items: center; justify-content: center; }
.mode-card-title { font-size: 1.3rem; margin-bottom: 12px; color: var(--text-light); font-weight: 700; }
.mode-card-description { font-size: 0.95rem; margin-bottom: 25px; flex-grow: 1; color: var(--text-secondary); }
.mode-card .btn { margin-top: auto; align-self: flex-start; }
.badge-soon { position: absolute; top: 12px; right: 12px; background: var(--primary-color); color: var(--background-dark); padding: 3px 8px; font-size: 0.75rem; font-weight: 700; border-radius: var(--border-radius-small); text-transform: uppercase; letter-spacing: 0.5px; }
.mode-card-soon { opacity: 0.8; }
.mode-card-soon:hover { transform: none; box-shadow: 0 4px 15px var(--shadow-light); border-color: var(--border-color); }

/* --- Sekcja O Nas / Cechy --- */
.dark-bg { background-color: var(--background-dark); }
.about-features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.feature-item { background: var(--background-light); padding: 25px; border-radius: var(--border-radius-medium); border: 1px solid var(--border-color); text-align: center; transition: background-color var(--transition-fast), border-color var(--transition-fast); }
.feature-item:hover { background-color: #333; border-color: var(--accent-color); }
.feature-icon { font-size: 2.5rem; color: var(--accent-color); margin-bottom: 15px; }
.feature-item h4 { font-size: 1.1rem; margin-bottom: 10px; color: var(--text-light); font-weight: 700; }
.feature-item p { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 0; }
/* Style dla poprzedniej sekcji O Nas (jeśli potrzebne) */
.slanted-bg { background: linear-gradient(160deg, var(--background-dark) 60%, var(--background-medium) 60%); }
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; gap: 60px; }
.about-image img { border-radius: var(--border-radius-large); box-shadow: -10px 10px 30px var(--shadow-color); border: none; }
.about-content h2 { margin-bottom: 20px; }
.about-content p { margin-bottom: 30px; font-size: 1.05rem; }
.stats-inline { display: flex; flex-wrap: wrap; gap: 30px; margin-bottom: 30px; }
.stat-item-inline { display: flex; align-items: center; gap: 15px; background: rgba(255, 255, 255, 0.05); padding: 15px; border-radius: var(--border-radius-medium); flex: 1; min-width: 180px; }
.stat-item-inline i { font-size: 2rem; color: var(--accent-color); width: 40px; text-align: center; }
.stat-item-inline div span { font-size: 1.5rem; font-weight: 700; display: block; color: var(--text-light); line-height: 1.2; }
.stat-item-inline div p { font-size: 0.85rem; color: var(--text-secondary); margin: 0; font-weight: 500; }

/* --- Sekcja Zarząd --- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.team-card { background: var(--background-light); border-radius: var(--border-radius-medium); padding: 0; text-align: center; border: 1px solid var(--border-color); box-shadow: 0 5px 15px var(--shadow-light); transition: transform var(--transition-medium), box-shadow var(--transition-medium); overflow: hidden; display: flex; flex-direction: column; }
.team-card:hover { transform: translateY(-6px); box-shadow: 0 10px 25px var(--shadow-color); }
.team-card-img { width: 100%; height: 150px; overflow: hidden; position: relative; }
.team-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.team-card:hover .team-card-img img { transform: scale(1.05); }
.team-card-content { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.team-card-name { font-size: 1.2rem; margin-top: 0; margin-bottom: 5px; font-weight: 700; }
.team-card-role { color: var(--accent-color); font-weight: 600; margin-bottom: 15px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; }
.team-card-social { margin-top: auto; padding-top: 15px; border-top: 1px solid var(--border-color); }
.team-card-social a { color: var(--text-secondary); font-size: 1.2rem; margin: 0 7px; transition: color var(--transition-fast), transform var(--transition-fast); display: inline-block; }
.team-card-social a:hover { color: var(--accent-color); transform: scale(1.15); }

/* --- Stopka --- */
footer { background: var(--background-medium); padding: 70px 0 30px 0; margin-top: 0; border-top: 1px solid var(--border-color); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 35px; margin-bottom: 50px; }
.footer-col h4 { font-size: 1rem; margin-bottom: 18px; color: var(--text-light); padding-bottom: 8px; border-bottom: 2px solid var(--accent-color); display: inline-block; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col.footer-about .footer-logo { margin-bottom: 15px; display: inline-block; }
.footer-col p { font-size: 0.9rem; line-height: 1.7; color: var(--text-secondary); }
.footer-links li { margin-bottom: 8px; }
.footer-links li a { color: var(--text-secondary); transition: color var(--transition-fast), transform var(--transition-fast); display: inline-block; font-size: 0.9rem; }
.footer-links li a:hover { color: var(--accent-color); transform: translateX(4px); }
.footer-socials { display: flex; gap: 10px; margin-top: 15px; }
.footer-socials a { color: var(--text-secondary); font-size: 1.4rem; transition: color var(--transition-fast), transform var(--transition-fast); display: inline-block; }
.footer-socials a:hover { color: var(--accent-color); transform: translateY(-2px) scale(1.1); }
.newsletter-form { display: flex; gap: 8px; margin-top: 15px; }
.newsletter-form input[type="email"] { padding: 9px 10px; border-radius: var(--border-radius-small); border: 1px solid var(--border-color); background-color: var(--background-dark); color: var(--text-primary); font-family: var(--font-primary); font-size: 0.85rem; flex-grow: 1; }
.newsletter-form input[type="email"]::placeholder { color: var(--text-secondary); opacity: 0.7; }
.newsletter-form input[type="email"]:focus { outline: none; border-color: var(--accent-color); box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2); }
.newsletter-form .btn { padding: 9px 12px; flex-shrink: 0; font-size: 0.85rem; }
.footer-bottom { text-align: center; padding-top: 25px; border-top: 1px solid var(--border-color); font-size: 0.85rem; color: var(--text-secondary); }
.footer-bottom i { display: none; }

/* --- Przycisk Powrotu na Górę --- */
.back-to-top-btn { position: fixed; bottom: 25px; right: 25px; width: 45px; height: 45px; background: var(--accent-color); color: var(--background-dark); border-radius: var(--border-radius-medium); display: flex; justify-content: center; align-items: center; font-size: 1.3rem; box-shadow: 0 4px 10px rgba(255, 165, 0, 0.3); opacity: 0; visibility: hidden; transform: translateY(15px); transition: all var(--transition-medium); z-index: 999; border: none; }
.back-to-top-btn.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top-btn:hover { background: var(--primary-color); color: var(--text-light); transform: scale(1.08) translateY(-2px); }

/* --- Toast Notification --- */
.toast { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); padding: 12px 20px; border-radius: var(--border-radius-medium); box-shadow: 0 5px 15px var(--shadow-color); color: var(--text-light); font-weight: 600; opacity: 0; visibility: hidden; transition: all var(--transition-slow); z-index: 1001; min-width: 220px; text-align: center; font-size: 0.9rem; }
.toast.show { opacity: 1; visibility: visible; bottom: 80px; }
.toast.success { background-color: var(--success-color); }
.toast.error { background-color: var(--danger-color); }

/* === STYLES FOR REGULAMIN.HTML === */

/* Hero Section - Regulamin specific adjustments */
.subpage-hero h1 { font-size: 2.8rem; }
.subpage-hero p { max-width: 700px; margin-left: auto; margin-right: auto; font-size: 1.1rem; margin-bottom: 30px; }

/* Table of Contents (TOC) */
.toc { background: rgba(44, 44, 44, 0.5); border: 1px solid var(--border-color); border-radius: var(--border-radius-medium); padding: 25px 30px; max-width: 550px; margin: 30px auto 0 auto; box-shadow: 0 5px 15px var(--shadow-light); backdrop-filter: blur(5px); }
.toc h2 { font-size: 1.2rem; margin-bottom: 20px; text-align: center; color: var(--accent-color); text-transform: uppercase; letter-spacing: 1px; border-bottom: none; font-weight: 700; }
.toc h2::after { display: none; }
.toc ul { list-style: none; padding: 0; text-align: center; }
.toc ul li { margin-bottom: 10px; }
.toc ul li:last-child { margin-bottom: 0; }
.toc ul li a { color: var(--text-primary); font-weight: 600; font-size: 1rem; text-decoration: none; transition: color var(--transition-fast), letter-spacing var(--transition-fast); display: inline-block; padding: 2px 0; position: relative; }
.toc ul li a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 1px; background-color: var(--accent-color); transform: scaleX(0); transform-origin: left; transition: transform var(--transition-medium); }
.toc ul li a:hover { color: var(--accent-color); letter-spacing: 0.3px; }
.toc ul li a:hover::after { transform: scaleX(1); }

/* Rule Sections Styling */
.rules-section { padding: 70px 0; border-bottom: 1px solid var(--border-color); }
.rules-section:last-of-type { border-bottom: none; }

/* Rule Card Styling */
.rule-card { background: var(--background-light); padding: 30px; border-radius: var(--border-radius-medium); border: 1px solid var(--border-color); box-shadow: 0 4px 10px var(--shadow-light); margin-bottom: 25px; text-align: left; }
.rule-card:last-child { margin-bottom: 0; }

.rule-card h3 { color: var(--accent-color); font-size: 1.3rem; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--border-color); text-transform: none; letter-spacing: normal; font-weight: 700; }
.rule-card h4 { color: var(--secondary-color); font-size: 1rem; margin-top: 15px; margin-bottom: 8px; text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px; }
.rule-card p { color: var(--text-primary); font-size: 0.95rem; line-height: 1.8; margin-bottom: 0.8em; }
.rule-card p:last-child { margin-bottom: 0; }

/* Styling rule points (strong) */
.rule-card p strong { color: var(--text-light); font-weight: 700; }

/* Styling lists within rule cards */
.rule-card ul { margin-top: 0.5em; margin-bottom: 1em; padding-left: 25px; list-style: none; }
.rule-card ul li { position: relative; margin-bottom: 0.6em; padding-left: 15px; font-size: 0.95rem; color: var(--text-primary); }
.rule-card ul li::before { content: '•'; color: var(--accent-color); position: absolute; left: 0; top: 1px; font-weight: bold; }
.rule-card ul ul { margin-top: 0.4em; margin-bottom: 0.6em; padding-left: 20px; }
.rule-card ul ul li::before { content: '-'; color: var(--secondary-color); }

/* Final Section (.koncowe) specific styles */
.koncowe .about-content { display: block; text-align: center; }
.koncowe .about-text { max-width: 800px; margin: 0 auto; }
.koncowe h2 { color: var(--accent-color); margin-bottom: 25px; }
.koncowe p { color: var(--text-primary); font-size: 1.05rem; margin-bottom: 20px; }
.koncowe .hero-buttons { justify-content: center; margin-top: 40px; }

/* Responsive adjustments for rules */
@media (max-width: 992px) {
    .subpage-hero h1 { font-size: 2.5rem; }
}
@media (max-width: 768px) {
  .subpage-hero h1 { font-size: 2.2rem; }
  .toc { padding: 20px; max-width: 90%; }
  .toc h2 { font-size: 1.1rem; }
  .toc ul li a { font-size: 0.9rem; }
  .rules-section { padding: 50px 0; }
  .rule-card { padding: 20px; margin-bottom: 20px; }
  .rule-card h3 { font-size: 1.15rem; }
  .rule-card p, .rule-card ul li { font-size: 0.9rem; }
  .koncowe p { font-size: 1rem; }
}
@media (max-width: 576px) {
    .subpage-hero h1 { font-size: 2rem; }
    .subpage-hero p { font-size: 1rem; }
    .rule-card h3 { font-size: 1.1rem; }
    .rule-card p, .rule-card ul li { font-size: 0.85rem; }
}

/* === END STYLES FOR REGULAMIN.HTML === */

/* --- Responsywność (Ogólna) --- */
@media (max-width: 992px) {
  .container { width: 95%; }
  /* h1 { font-size: 3rem; } */
  /* h2 { font-size: 2.4rem; } */
  .hero-container { /*grid-template-columns: 1fr; */ text-align: center; gap: 40px; } /* Adjusted from original second block */
  /* .hero-content { order: 1; } */
  .hero-visual { order: 2; max-width: 400px; margin: 0 auto; }
  .hero-buttons { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about-image { margin-bottom: 40px; max-width: 400px; margin-left: auto; margin-right: auto; }
  .about-image img { box-shadow: 0 10px 25px var(--shadow-color); }
  .stats-inline { justify-content: center; }
}
@media (max-width: 768px) {
  :root { --header-height: 60px; } header { height: var(--header-height); }
  .menu-toggle { display: flex; align-items: center; } .nav-right { display: none; }
  .nav-links { display: none; position: absolute; top: var(--header-height); left: 0; width: 100%; background: var(--background-light); flex-direction: column; align-items: center; padding: 15px 0; box-shadow: 0 10px 20px var(--shadow-color); border-top: 1px solid var(--border-color); z-index: 999; }
  .nav-links.active { display: flex; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links li a { padding: 12px 0; display: block; width: 100%; font-size: 1rem; }
   .nav-links li a:hover::after { transform: scaleX(0.3); }
  /* h1 { font-size: 2.5rem; } */
  /* h2 { font-size: 2rem; } */
  .section-padding { padding: 70px 0; }
  .section-header { margin-bottom: 50px; }
  .modes-grid, .team-grid, .about-features-grid { grid-template-columns: 1fr; }
  .stats-inline { gap: 15px; } .stat-item-inline { min-width: 200px; padding: 12px; }
  /* Footer styles already handled in the first @media (max-width: 768px) block */
   .toast.show { bottom: 20px; width: 90%; }
   .back-to-top-btn { width: 40px; height: 40px; font-size: 1.2rem; bottom: 15px; right: 15px;}
}
@media (max-width: 576px) {
    /* h1 { font-size: 2.2rem; } */
    /* h2 { font-size: 1.8rem; } */
    .section-padding { padding: 60px 0; }
    .hero p { font-size: 1rem; }
    .hero-buttons { flex-direction: column; gap: 12px; align-items: center; }
    .btn { padding: 12px 24px; font-size: 0.9rem; width: 90%; max-width: 320px; }
    .btn-lg { padding: 14px 28px; font-size: 1rem; }
    .mode-card, .feature-item { padding: 20px; }
    .team-card-content { padding: 15px; }
    /* Footer styles already handled in the first @media (max-width: 576px) block */
}