body {
  height: 100%;
  margin: 0;
  font-family: "DM Sans", sans-serif;
  background-color: white;
  background-size: cover;       /* Dopasowuje obraz do całej strony */
  background-position: center;  /* Wyśrodkowanie */
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.hero {
  height: 100vh;
  background: url("_MG_8348_resize.jpg") no-repeat center center / cover;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 5%;
  position: relative;
  overflow: hidden;
  will-change: background-position, transform;
 
}

.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 0;
}



  /* nagłówek nad overlayem */
  .t1 {
    top:30%;
    left: 42vw;
    font-size: 80px;
    color: rgb(255, 255, 255);
    z-index: 1;           /* ponad pseudo-elementem */
    position: absolute;
    
  }


.header{
    max-width: 10%;
}
/* nawigacja */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    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;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
  }


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); /* kolor po scrollu */
  }
  nav ul.menu li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;                 /* odległość linii od tekstu */
    width: 0;
    height: 2px;
    background-color: currentColor; /* linia w kolorze tekstu */
    transition: width 0.3s ease;    /* animacja szerokości */
  }
  
  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);}

.contact_info{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10%;
  max-width: 100vw;
  margin: 10%;
  
}

.T_D{
h1{
  font-size: 40px;
    color: rgb(0, 2, 131);
    font-weight: bold;
}
p1{
  font-size: 20px;
  color:rgb(0, 2, 131);
}
}
.H_C{
  
h1{
  font-size: 40px;
    color:rgb(0, 2, 131);
    font-weight: bold;
}
p1{
  color:rgb(0, 2, 131);
  font-size: 20px;
}
}
.media{
  font-weight: bold;
  h1{
  font-size: 60px;
    color: rgb(0, 2, 131);
    text-align: center;
    margin-top: 15%;
}
h1{
  font-family:  'Arial Black', sans-serif;
  font-size: 6vw;
    color: rgb(0, 2, 131);
    text-align: left;
    margin-left: 5%;
    margin-top: 15%;
    
}
h3{
  font-size: 70px;
    color: rgb(0, 2, 131);
    text-align: center;
   
}
p1{
  font-size: 40px;
  color:rgb(0, 2, 131);
    margin: 10%;
    
}
@media (max-width: 768px) {
p1{
  font-size: 20px;
  color:rgb(0, 2, 131);
    margin: 10%;
    
}
}
.s1{
  font-size: 30px;
  color: rgb(0, 2, 131);
  margin-top: 20%;
    
}
}
.GKK_socials {
  margin: 5% auto;
  text-align: center;
  
}

.GKK_socials .icons {
  display: flex;
  justify-content: center;
  gap: 10%px; 
  margin-top: 10%;
}

.GKK_socials img {
  width: 20%;   
  height: auto;
   transition: transform 0.3s ease-in-out;
}

.riders_socials figure {
  text-align: center;
  margin-bottom: 15%;
}

figcaption {
  font-size: 30px;
  color: rgb(0, 2, 131);
  margin-top: 5px;
}

.riders_socials {
  margin: 5% auto;
  text-align: center;
  
}

.riders_socials .icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10%px; 
  margin-top: 5%;
  
}

.riders_socials img {
  
  width: 20%;   
  height: auto;
   transition: transform 0.3s ease-in-out;
}
.GKK_socials img:hover,
.riders_socials img:hover {
  transform: scale(1.15);  
}
hr{
  margin-bottom: 15%;
  background-color: rgb(0, 2, 131);
   
   width: 14%;
   height: 8px;
   margin-left: 7%;
   margin-top: 2%;
}
.ending img{
    filter: invert(9%) sepia(100%) saturate(7471%) hue-rotate(238deg) brightness(95%) contrast(130%);
  width: 4vw;
  height: auto;
}
.ending{
  display: flex;
  justify-content: center;
  gap: 1vw;
  margin: 5%;
}
.scroll-animate {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.active {
  opacity: 1;
  transform: translateY(0);
}


.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
@media (max-width: 768px) {
.hero .t1 {
  font-size: 8vw;
  margin-left: -10vw;
}
}
/* === 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-logo {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 30px;
}
.mobile-logo img {
  max-width: 120px;
  filter: brightness(0) invert(1);
}
/* === 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 20px;
  box-sizing: border-box;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 60px 0 0 0;
  text-align: center;
}
.mobile-nav li { margin: 15px 0; }
.mobile-nav a {
  color: #fff;
  font-size: 20px;
  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;
}

/* === MEDIA QUERIES === */
@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 */
  .hero .t1 {
    font-size: 12vw;
  }

  /* contact info – jedna kolumna */
  .contact_info {
    grid-template-columns: 1fr;
    gap: 40px;
    margin: 15% 5%;
  }

  /* social media w jednej kolumnie */
  .riders_socials .icons {
    grid-template-columns: 1fr;
  }

  figcaption {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .hero .t1 { font-size: 14vw; }
}
