/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* ===================== LOADER � PREMIUM ===================== */
#loader {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #0a2d5c 0%, #021F42 70%, #000000 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
  overflow: hidden;
}
#loader::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="4"><rect width="4" height="4" fill="%23021433"/><rect x="0" y="0" width="1" height="1" fill="%23ffffff08"/><rect x="2" y="2" width="1" height="1" fill="%23ffffff08"/></svg>') repeat;
  opacity: 0.35;
  pointer-events: none;
}
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-logo { width: 340px; height: 340px; opacity: 0; transform: scale(0.6); transition: opacity 1.4s ease-out, transform 1.4s ease-out; }
.loader-logo img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0); transition: filter 1.6s ease-out; }
.loader-logo.visible { opacity: 1; transform: scale(1); }
.loader-logo.visible img { filter: brightness(1); }
.loader-logo.fade-out { opacity: 0.25; transform: scale(0.92); transition: opacity 1s ease-out, transform 1s ease-out; }
.fade-page { opacity: 0; transition: opacity 0.5s ease-in; }
.fade-page.loaded { opacity: 1; }

/* ===================== OG�LNE ===================== */
body.dark-bg {
  background: #021F42;
  color: white;
  min-height: 100vh;
  font-family: 'Segoe UI', sans-serif;
  overflow-x: hidden;
}

.top-bar {
  position: fixed;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 3000;
}

.top-left {
  display: flex;
  align-items: left;
  gap: 12px; /* 👈 TU kontrolujesz odległość */
}

#langCorner {
  position: static;
  top: 20px; right: 25px;
  background: #ffffffee;
  color: #003d7a;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  z-index: 2100;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 0 12px #0004;
  cursor: pointer;
}
#langCorner img { width: 26px; height: 18px; border-radius: 3px; 
}
#hamburger {
  position: static;
  top: 20px; left: 20px;
  font-size: 38px;
  color: #ffffff;
  background: #003d7acc;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  z-index: 2300;
  box-shadow: 0 0 12px #0006;
}

#homeLogo {
  position: static;
  width:  clamp(50px, 13vw, 65px);
  height: clamp(50px, 13vw, 65px);
  top: clamp(14px, 4vw, 20px);
  left: clamp(95px, 18vw, 120px);
  z-index: 2200;                  /* wyżej niż hamburger (2200) i langCorner (2100) */
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.95;
  background: #003d7acc;
  border-radius: 10px;
  box-shadow: 0 0 12px #0006; 
}

#homeLogo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;             /* opcjonalnie – lekkie zaokrąglenie */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.3s ease;
}

#homeLogo:hover {
  transform: scale(1.08);
  opacity: 1;
}

#homeLogo:hover img {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

/* Na małych ekranach (telefonach) – przesuń lekko, żeby nie nachodziło na hamburger */
@media (max-width: 768px) {
  /* Opcjonalnie: lekko przesuń hamburger, żeby nie nakładał się na logo */
  #hamburger {
    left: 15px;                   /* miejsce na logo + odstęp */
  }
}

#sideMenu {
  position: fixed;
  left: -260px;
  top: 0;
  width: 260px;
  height: 100%;
  background: #001a33;
  transition: 0.4s ease;
  padding-top: 100px;
  z-index: 1999;
}
#sideMenu a {
  display: block;
  color: #cfdfff;
  text-decoration: none;
  padding: 15px 30px;
  font-size: 1.2rem;
  transition: 0.3s;
  text-align:left;
}
#sideMenu a:hover { background: #0050a5; color: white; }
#menuOverlay {
  position: fixed;
  inset: 0;
  background: #00000088;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
  z-index: 1500;
}

/* Strona g��wna 
.section { height: 100vh; width: 100vw; display: flex; flex-direction: column; justify-content: center; align-items: center; font-size: 2rem; a{color:#ffffff}}
#section1 { background: #003d7a; }
#section2 { background: #f0f0f0; color: #002b55; }
#section3 { background: #dce6f2; color: #002b55; }
#section4 { background: #003d7a; }*/

/* Reset i istniejące style (loader, menu itp.) pozostają bez zmian – zakładam, że masz je w pliku */
/* Dodajemy tylko nowe style dla sekcji osiągnięć */

.achievements-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 20px 100px;
  background: #021F42;
  min-height: 100vh;
  font-family: 'Segoe UI', sans-serif;
  color: white;
}

.achievements-page h1 {
  font-size: 3.8rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 80px;
  color: #ffffff;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px 30px;
  justify-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.achievement-card {
  width: 100%;
  max-width: 360px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  text-align: center;
}

/* poniżej 768 px */
@media (max-width: 767px) {
  .achievements-grid {
    grid-template-columns: 1fr;
    gap: 40px 20px;
    padding: 0 15px;
  }
  
  .achievement-card {
    max-width: 100%;
    padding: 25px 18px;
    margin: 0 auto;
  }
  
  .achievement-image {
    max-width: 100%;
    border-radius: 12px;
  }
  
  .achievement-title {
    font-size: 1.45rem;
  }
  
  .achievement-description,
  .achievement-location,
  .achievement-date {
    font-size: 1.15rem;
  }
  
  .visit-button {
    padding: 12px 24px;
    font-size: 1rem;
    width: 100%;
    max-width: 280px;
  }
}



/*.achievement-card:hover {
  transform: translateY(-10px);
}*/

/*.medal {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 4.5rem;
  font-weight: bold;
  margin-bottom: 30px;
  position: relative;
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.6);
}*/

/* 1. miejsce – złoty medal */
/*.medal.gold {
  background: radial-gradient(circle, #ffd700, #ffb300);
  color: #8b6914;
  box-shadow: 0 0 50px rgba(255, 215, 0, 0.8);
}*/

/* 2. miejsce – srebrny medal */
/*.medal.silver {
  background: radial-gradient(circle, #e8e8e8, #b0b0b0);
  color: #666666;
  box-shadow: 0 0 40px rgba(200, 200, 200, 0.6);
}*/

/* 3. miejsce – brązowy medal */
/*.medal.bronze {
  background: radial-gradient(circle, #cd7f32, #a0522d);
  color: #8b5a2b;
  box-shadow: 0 0 40px rgba(205, 127, 50, 0.6);
}*/

.achievement-image {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 14px;
  margin-bottom: 28px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
  object-fit: cover;
}

.achievement-title {
  font-size: 1.65rem;
  font-weight: 600;
  margin-bottom: 14px;
  line-height: 1.3;
  color: #ffffff;
}

.achievement-description {     /* ← nowa klasa zamiast achievement-location */
  font-size: 1.25rem;
  font-weight: 400;
  color: #c0d4ff;
  margin-bottom: 10px;
  line-height: 1.35;
}

.achievement-location,
.achievement-date {
  font-size: 1.1rem;
  color: #88aadd;
  margin-bottom: 6px;
}

.achievement-location {
  font-weight: 500;
  color: #aaccff;
}

/* Przycisk zamiast gołej ikonki */
.visit-button {
  margin-top: 24px;
  padding: 12px 28px;
  background: linear-gradient(135deg, #004a99, #0066cc);
  color: white;
  font-size: 1.05rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 80, 170, 0.35);
}

.visit-button:hover {
  background: linear-gradient(135deg, #0066cc, #0080ff);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 100, 200, 0.5);
}

.visit-button:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(0, 80, 170, 0.4);
}

.visit-button::after {
  content: "→";
  font-size: 1.3rem;
  opacity: 0.9;
}

/* Ikonka linku (możesz zastąpić własnym SVG lub obrazkiem) */
.link-icon {
  position: absolute;
  bottom: 18px;
  right: 24px;
  font-size: 1.4rem;
  color: #88aadd;
  opacity: 0.7;
}

/* Responsywność */
@media (max-width: 800px) {
  .achievements-grid {
    grid-template-columns: 1fr;
  }
  .achievement-card {
    width: 320px;
  }
  .achievements-page h1 {
    font-size: 3.2rem;
  }
}

/* Dodaj na końcu pliku CSS lub w sekcji .achievement-card */

.achievement-card .visit-button {
  margin-top: 20px;          /* odstęp od tekstu powyżej */
  margin-bottom: 20px;       /* odstęp od tekstu poniżej */
}

/* dodatkowa reguła – większy odstęp po pierwszym przycisku */
.achievement-card .visit-button:first-of-type {
  margin-bottom: 28px;       /* ← tu robimy większą przerwę przed dolnym tekstem */
}

/* ==================== RESPONSIVE 768 PX ==================== */
@media (max-width: 420px) {
  html {
    font-size: 15px;           
  }

  body {
    overflow-x: hidden !important;
  }

  .top-bar {
    top: 10px !important;
    left: 10px !important;
    right: 10px !important;
    padding: 0 6px;
    height: 48px;
    align-items: center;
  }

  #hamburger {
    font-size: 28px !important;
    padding: 6px 10px !important;
    line-height: 1;
  }

  #homeLogo {
    width: 48px !important;
    height: 48px !important;
    margin-left: 4px !important;
  }

  #homeLogo img {
    height: 100%;
    width: 100%;
    object-fit: contain;
  }
}