body {
  height: 100%;
  margin: 0;
  overflow-x: hidden;
  font-family: "DM Sans", sans-serif;
  background-size: cover;      
  background-position: center;  
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-image: url("ChatGPT Image 24 sie 2025, 19_01_28.png");
  
}

/* hero (pierwszy ekran) */
.hero {
  height: 100vh;
  background: url("OOM_kolarstwo_torowe-162A7732-fot_Piotr_Rychter.jpg") no-repeat center top;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 0;

  }
  
  /* ciemna warstwa nad tłem */
  .hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4); /* czarny półprzezroczysty */
    z-index: 0;
  }

  
  /* nagłówek nad overlayem */
 .hero .t1 {
  font-size: 80px;
  color: #fff;
  font-weight: bold;
  text-align: center;
  position: relative;   /* zamiast absolute */
  z-index: 1;
  margin: 0;
}


/* nawigacja */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 90px;
    background: transparent;   /* na początku przezroczyste */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 10;
    transition: background 0.3s ease;
  }
  
  /* po scrollu */
  nav.scrolled {
    background: url("cdb94bb5-b8ce-43d7-bbfc-6069cc31516b.png") no-repeat center center;
    background-size: cover;
  }


nav .logo img {
    height: 60px;
    width: auto;
}

nav ul.menu {
    list-style: none;
    display: flex;
    gap: 60px;
    margin: 0;
    padding: 0;
    justify-content: center;
    flex: 1;
    
}

nav ul.menu li a {
    text-decoration: none;
    color: rgb(255, 255, 255);
    font-size: 30px;
    font-weight: bold;
    padding-inline: 40px;
    transition: transform 0.3s ease;
    display: inline-block;
    
}
nav.scrolled ul.menu li a {
    color: rgb(255, 255, 255); 
  }
  nav ul.menu li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;                 
    width: 0;
    height: 2px;
    background-color: currentColor; 
    transition: width 0.3s ease;  
    max-width: 100vw;
  }
  
  nav ul.menu li a:hover {
    transform: scale(1.1);
  }
  
  nav ul.menu li a:hover::after {
    width: 60%;   
    left: 20%;                
  }

  .lang-toggle {
  margin-left: 16px;
}

.switch {
  position: relative;
  width: 78px;
  height: 34px;
  background: #e6e6e6;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  cursor: pointer;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.15);
}

.flag {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
}
.flag img {
  width: 100%;
  height: 100%;
}
.flag.left{
  left: 3px;
}
.flag.right{
  right: 3px;
}

#langSwitch {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 28px;
  height: 28px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
  transition: transform .25s ease; 
}

#langSwitch:checked + .switch .knob {
  transform: translateX(60px);}


.galeria-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  max-width: 100vw;
  margin-top: 1%;
  margin-bottom: 15%;
  margin-right: 0;
  margin-left: 0;
 
}

.galeria-grid img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: brightness(0.8);
}

.galeria-grid img:hover {
  filter: brightness(1.1);
  transform: scale(1.03);
}

/* RESPONSYWNOŚĆ */
@media (max-width: 768px) {
  .galeria-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .galeria-grid {
    grid-template-columns: 1fr;
  }
}
.ending{
  display: flex;
  justify-content: center;
  gap: 1vw;
  margin: 5%;
  
}
.ending img{
    filter: invert(9%) sepia(100%) saturate(7471%) hue-rotate(238deg) brightness(95%) contrast(130%);
  width: 4vw;
  height: auto;
}
.gallery_text{
  width: 100vw;
  height: 15vw;
  align-items: center;
  background-color: white;
  display:flex;
  justify-content: center;
  font-size: 1.5vw;
  color:rgb(20, 25, 88);
  background: white;
  box-shadow: inset 0 20px 20px -20px rgba(0,0,0,0.6), 
              inset 0 -20px 20px -20px rgba(0,0,0,0.6);
}
/* === HERO === */
.hero {
  width: 100vw;
  height: 100vh;                /* pełna wysokość ekranu */
  background: url("OOM_kolarstwo_torowe-162A7732-fot_Piotr_Rychter.jpg") no-repeat center center;
  background-size: cover;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;      /* wyśrodkowanie pionowe i poziome */
  text-align: center;
  z-index: 1;
}
@media (max-width: 768px) {
  .hero .t1 {
    font-size: 10vw;   /* responsywna wielkość na telefonie */
  }
}

/* ciemna nakładka */
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 0;
}

/* napis w hero */


/* === BURGER (domyślnie ukryty) === */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10001;
}
.burger span {
  width: 100%;
  height: 3px;
  background: #fff;
}

/* === MOBILE NAV === */
.mobile-nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgb(0, 2, 131);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 10000;
  padding: 40px;
  box-sizing: border-box;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 40px 0 0 0;
  text-align: left;
}
.mobile-nav li { margin: 20px 0; }
.mobile-nav a {
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s ease, color 0.2s ease;
}
.mobile-nav a:hover {
  transform: scale(1.1);
  color: #eaf2f8;
}
.mobile-nav .close {
  position: absolute;
  top: 20px; right: 20px;
  font-size: 36px;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
}
.mobile-logo {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 30px;
}
.mobile-logo img {
  max-width: 120px;
  filter: brightness(0) invert(1);
}

/* === GALERIA GRID === */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  max-width: 100vw;
  margin: 1% 0 15% 0;
}
.galeria-grid img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: brightness(0.8);
}
.galeria-grid img:hover {
  filter: brightness(1.1);
  transform: scale(1.03);
}

/* === RESPONSYWNOŚĆ === */
@media (max-width: 768px) {
  /* chowamy desktopowy nav */
 nav:not(.mobile-nav) { display: none; }

  /* burger w lewym górnym rogu */
  .burger {
    display: flex;
    position: fixed;
    top: 15px;
    left: 15px;
  }

  /* hero na mobile */
   .hero {
    background: url("OOM_kolarstwo_torowe-162A7732-fot_Piotr_Rychter.jpg") no-repeat center top;
    background-size: cover;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hero .t1 {
  font-size: 10vw;
  color: #fff;
  font-weight: bold;
  text-align: center;
  position: relative;
  z-index: 1;
  margin: 0;              /* usuwa przesunięcia */
}
  /* galeria – 3 kolumny */
  .galeria-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  
}

@media (max-width: 480px) {
  .galeria-grid {
    grid-template-columns: 1fr; /* na bardzo małych ekranach pojedyncza kolumna */
  }
}