/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;600;700&family=Outfit:wght@300;400;600;700;800&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* SZCZECIN / POGOŃ / GRYF COLORS */
  --accent: #dc142c;       /* Czerwień Gryfa */
  --accent2: #720e1e;      /* Głęboki bordowy */
  --accent-glow: rgba(220, 20, 44, 0.45);
  
  /* Granatowe tła */
  --bg: #070b14;           /* Bardzo ciemny granat */
  --bg2: #0b1325;          /* Ciemny granat */
  --bg3: #111c38;          /* Jaśniejszy granat */
  
  /* Karty lekko wpadające w granat */
  --card: rgba(17, 28, 56, 0.4);
  --card-border: rgba(36, 56, 107, 0.4);
  
  --text: #e8ecf4;
  --text-muted: #8b99b5; 
  
  --danger: #ff3b3b; 
  --danger-glow: rgba(255, 59, 59, 0.4);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ===== ATMOSPHERE ===== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 500px at 10% 20%, rgba(26, 43, 84, 0.35), transparent),
    radial-gradient(ellipse 600px 400px at 90% 80%, rgba(114, 14, 30, 0.15), transparent);
  pointer-events: none;
  z-index: 0;
}

/* ===== HEADER (FLOATING NAVBAR) ===== */
header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  height: 64px;
  width: 95%;
  max-width: 1200px;
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.logo {
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
  text-decoration: none;
}

header nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

header nav a {
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 7px;
}

header nav a:hover,
header nav a.active {
  color: #fff;
  background: rgba(220, 20, 44, 0.12);
  border-color: rgba(220, 20, 44, 0.4);
}

header nav a i { font-size: 12px; }

.socials { display: flex; gap: 14px; align-items: center; }
.socials a { color: var(--text-muted); font-size: 18px; transition: color 0.2s, transform 0.2s; }
.socials a:hover { color: var(--accent); transform: translateY(-2px); }

/* ===== ZMIENIONY MAIN HERO (Tekst po lewej, Logo po prawej) ===== */
.hero {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  padding: 180px 40px 80px; 
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  min-height: 85vh;
  gap: 40px;
}

.hero-text { 
  flex: 1;
  max-width: 650px; 
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-text h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: 4px;
  line-height: 1.1;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 24px;
}

.hero-text h1 .accent {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 600px;
  line-height: 1.7;
}

.hero-btns { 
  display: flex; 
  gap: 16px; 
  flex-wrap: wrap; 
  justify-content: flex-start;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; box-shadow: 0 0 24px var(--accent-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 36px var(--accent-glow); }

.btn-outline { background: transparent; color: #fff; border: 1px solid var(--card-border); }
.btn-outline:hover { background: var(--card); border-color: rgba(220, 20, 44, 0.4); transform: translateY(-2px); }

.btn-danger { background: rgba(17, 28, 56, 0.6); color: #fff; border: 1px solid var(--card-border); }
.btn-danger:hover { transform: translateY(-2px); background: var(--card); border-color: rgba(220, 20, 44, 0.4); }

.counter {
  margin-top: 30px;
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.counter::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
}

.hero-img-wrap {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  max-width: 450px;
}

.hero-img-wrap img {
  width: 100%;
  border-radius: 16px;
  filter: drop-shadow(0 0 50px rgba(220, 20, 44, 0.25));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* ===== SEKCJA: JAK SIĘ POŁĄCZYĆ (CONNECT) ===== */
.connect-guide { padding: 60px 20px; max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.connect-header { text-align: center; margin-bottom: 50px; }
.connect-header h2 { font-family: 'Outfit', sans-serif; font-size: 36px; font-weight: 800; color: var(--accent); margin-bottom: 10px; }
.connect-header p { color: var(--text-muted); font-size: 16px; }

.connect-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.step-card { background: var(--card); border: 1px solid var(--card-border); border-radius: 12px; padding: 40px 30px 30px; text-align: center; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.step-bg-number { position: absolute; top: 10px; right: 20px; font-size: 72px; font-weight: 800; color: rgba(220, 20, 44, 0.08); font-family: 'Outfit', sans-serif; z-index: 0; pointer-events: none; }
.step-icon { width: 64px; height: 64px; background: rgba(220, 20, 44, 0.1); color: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; margin: 0 auto 20px; position: relative; z-index: 1; border: 1px solid rgba(220, 20, 44, 0.2); }
.step-card h3 { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 15px; position: relative; z-index: 1; }
.step-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 30px; line-height: 1.6; flex-grow: 1; position: relative; z-index: 1; }
.step-btn { width: 100%; display: block; padding: 14px; border-radius: 6px; font-weight: 700; text-decoration: none; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; position: relative; z-index: 1; transition: all 0.2s ease; }
.step-btn:not(.btn-outline) { background: var(--accent); color: #fff; border: none; }
.step-btn:not(.btn-outline):hover { background: #f01630; transform: translateY(-2px); }
.step-btn.btn-outline { background: transparent; border: 1px solid var(--card-border); color: var(--accent); }
.step-btn.btn-outline:hover { border-color: var(--accent); background: rgba(220, 20, 44, 0.1); transform: translateY(-2px); }

/* ===== SEKCJA: FAQ ===== */
.new-faq { padding: 60px 20px; max-width: 800px; margin: 0 auto; position: relative; z-index: 1; }
.faq-header { text-align: center; margin-bottom: 40px; }
.faq-subtitle { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.faq-header h2 { font-family: 'Outfit', sans-serif; font-size: 32px; font-weight: 800; color: #fff; margin: 10px 0; }
.faq-header p { color: var(--text-muted); font-size: 15px; }

.faq-container { display: flex; flex-direction: column; gap: 12px; }
.faq-box { background: rgba(17, 28, 56, 0.2); border: 1px solid var(--card-border); border-radius: 10px; overflow: hidden; transition: border-color 0.3s; }
.faq-box:hover { border-color: rgba(220, 20, 44, 0.3); }
.faq-box summary { padding: 22px 24px; font-size: 15px; font-weight: 600; color: #fff; cursor: pointer; display: flex; justify-content: space-between; align-items: center; list-style: none; transition: background 0.2s; }
.faq-box summary::-webkit-details-marker { display: none; }
.faq-box summary i { color: var(--text-muted); transition: transform 0.3s ease, color 0.3s ease; font-size: 14px; }
.faq-box[open] { border-color: rgba(220, 20, 44, 0.4); }
.faq-box[open] summary { background: rgba(220, 20, 44, 0.05); }
.faq-box[open] summary i { transform: rotate(180deg); color: var(--accent); }
.faq-content { padding: 0 24px 24px; color: var(--text-muted); font-size: 14px; line-height: 1.7; }

/* =========================================
   ZMIENIONA STOPKA (Styl idealnie ze zdjęcia)
   ========================================= */
.image-style-footer {
  background: #09090b; /* Bardzo głęboka czerń */
  border-top: 1px solid #1f1f22; 
  padding: 80px 0 30px;
  margin-top: 60px;
  position: relative;
  z-index: 1;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.footer-main {
  display: flex;
  justify-content: space-between; /* Oddziela Brand na lewo, linki na prawo */
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand {
  max-width: 380px;
}

.footer-logo {
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 15px;
}

.footer-brand p {
  color: #71717a; /* Taki sam odcień szarości jak na screenie */
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.footer-social-boxes {
  display: flex;
  gap: 12px;
}

.footer-social-boxes a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #18181b; /* Ciemnoszary box */
  border-radius: 8px;
  color: #a1a1aa; /* Szare ikony */
  font-size: 18px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-social-boxes a:hover {
  background: #27272a;
  color: #fff;
  transform: translateY(-2px);
}

.footer-links-wrapper {
  display: flex;
  gap: 140px; /* Duży odstęp między ROZGRYWKA a PROJEKT */
  margin-right: 15%; /* Przesuwa kolumny lekko do środka względem prawej krawędzi */
}

.footer-column h4 {
  font-family: 'Outfit', sans-serif;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.footer-column a {
  display: block;
  color: #71717a;
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 16px;
  transition: color 0.2s;
}

.footer-column a:hover {
  color: #fff;
}

.footer-bottom-bar {
  border-top: 1px solid #1f1f22; /* Kreska rozdzielająca na samym dole */
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  color: #52525b; /* Ciemny tekst w stopce dolnej */
  font-size: 12px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  header { width: 100%; top: 0; border-radius: 0; border-left: none; border-right: none; border-top: none; padding: 0 20px; }
  
  /* Na telefonach Hero układa się w kolumnę i centruje */
  .hero { flex-direction: column; text-align: center; padding: 120px 24px 40px; }
  .hero-text { align-items: center; }
  .hero-text h1 { text-align: center; }
  .hero-btns { justify-content: center; }
  .hero-img-wrap { margin-top: 40px; justify-content: center; }
  
  .footer-links-wrapper { margin-right: 0; gap: 80px; }
}

@media (max-width: 600px) {
  header nav a span { display: none; }
  .hero-btns { flex-direction: column; width: 100%; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  
  .connect-cards { grid-template-columns: 1fr; }
  
  .footer-main { flex-direction: column; }
  .footer-links-wrapper { flex-direction: column; gap: 40px; }
  .footer-bottom-bar { flex-direction: column; text-align: center; }
}