/* Reset & globalne */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


@font-face {
  font-family: 'Riffic';
  src: url('./fonts/RifficFree-Bold.woff2') format('woff2'),
       url('./fonts/RifficFree-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}


body {
  font-family: 'Barlow', sans-serif;
  color: #111;
  background-color: #fff;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 2rem 1rem;
}





/* === GÓRNE MENU (NAVBAR) === */

.navbar {
  background: #003dc4;
  position: sticky;
  top: 0;
  z-index: 999;
}

.navbar.scrolled {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar .container {
  transition: 0.3s ease-in-out;
  padding: 1rem 0rem; /* <- ustaw takie same jak na początku */
}

.navbar.scrolled .container {
     padding: 0rem 0rem;
}

nav {
  width: 100%;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* === LISTA NAWIGACJI === */
#nav-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  gap: 1rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}

#nav-links li {
  display: inline-block;
  position: relative;
}

#nav-links a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
  padding: 0.8rem;
}

#nav-links a:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
  background-color: #002fa0;
}

#nav-links a:hover {
  color: #fec500;
}

/* === CTA BUTTON === */
.btn-cta {
  background: #ff0012;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-weight: bold;
  transition: background 0.2s;
}

.btn-cta:hover,
.btn-cta:focus {
  background: #cc0000;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* === HAMBURGER === */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 1rem;
  background: none;
  border: none;
}

.menu-toggle:focus {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 25px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* === SUBMENU (desktop) === */
.has-submenu > .submenu-toggle {
  all: unset;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0.8rem;
}


/* === SUBMENU – aktywne na desktopie przez klasę .show (po kliknięciu) === */
.has-submenu .submenu.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}


.has-submenu > .submenu-toggle:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
  background-color: #002fa0;
}

.has-submenu > .submenu-toggle:hover {
  color: #fec500;
}

.has-submenu > .submenu-toggle::after {
  content: '▾';
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.has-submenu > .submenu-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #003dc4;
  padding: 0.5rem 0;
  list-style: none;
  border-radius: 0.3rem;
  min-width: 220px;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);

  /* animacja */
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.submenu.show {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}


/* === hover pokazuje submenu tylko na desktopie === */
@media (min-width: 769px) {
  .has-submenu:hover .submenu {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}





.submenu li {
  width: 100%;
}

.submenu a {
  display: block;
  padding: 0.6rem 1rem;
  color: white;
  text-decoration: none;
  font-weight: normal;
  transition: background 0.2s;
}

.submenu a:hover,
.submenu a:focus {
  background-color: #002fa0;
  color: #fec500;
}

/* === MOBILE === */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    margin-left: auto;
  }

  .navbar nav {
    width: 100%;
    order: 2;
  }

 #nav-links {
  flex-direction: column;
  display: flex;
  width: 100%;
  background-color: #003dc4;
  padding: 0 1rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
}

#nav-links.show {
  max-height: 600px;
  opacity: 1;
  padding: 1rem;
}


  #nav-links li {
    width: 100%;
    text-align: left;
    padding: 0.5rem 0;
  }

  .btn-cta {
    display: block;
    width: 100%;
    text-align: center;
  }

 .submenu {
    position: static;
    box-shadow: none;
    background: none;
    padding-left: 1rem;
    flex-direction: column;
    gap: 0.5rem;
    display: flex;

    /* animacja */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: none;
    pointer-events: none;
  }

  .submenu.show {
    max-height: 500px;
    opacity: 1;
    pointer-events: auto;
  }

  .submenu a {
    padding: 0.3rem 0;
  }



  .submenu a {
    padding: 0.3rem 0;
  }
}





/* HERO */
.hero {
  background-color: #003dc4;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
}

.hero-text {
  flex: 1 1 50%;
  min-width: 280px;
}

.hero-img {
  flex: 1 1 40%;
  text-align: right;
}

.hero-img img {
  max-width: 100%;
  height: auto;
}

.hero-heading-image {
  margin-top: 2rem;
}


.hero-heading-image img {

    max-width: 500px;
    width: 100%;
    margin-left: -20px;
}


.mini-hero-heading-image {
  margin-top: 1rem;
   margin-bottom: 0.5rem;
}


.mini-hero-heading-image img {
    max-width: 350px;
    width: 100%;
    margin-left: -10px;
}





.distance-badge {
    background: #ff0012;
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    font-weight: bold;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.hero h1 {
  font-size: 6rem;
  line-height: 1.1;
  margin: 1rem 0;
   text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.25);
}

.hero-meta {
    display: flex
;
    align-items: flex-start;
    gap: 4rem;
    /* margin-top: 2rem; */
    flex-wrap: wrap;
    /* justify-content: space-between; */
}

.hero-meta-left {
  flex: 0 1 auto;
}

.hero-meta-right {
  flex: 0 1 auto;
  display: flex;
  align-items: flex-end;
}





.highlight-yellow {
 color: #fec500;
    font-style: italic;
    margin-right: 10px;

}

.highlight-blue {
  color: white;
}

.date {
    font-family: 'Riffic', sans-serif;
    font-size: 5.2rem;
    font-weight: bold;
    color: #FF1B1B;
    text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.25);
}

.place {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 2rem;
    text-transform: uppercase;
    margin-top: -10px;
}

.cta-button {
    background: #ff0012;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    border: none;
    padding: 1.3rem 2.4rem;
    border-radius: 0.4rem;
    text-decoration: none;
    transition: background 0.3s;
    margin-top: 1rem;
}

.cta-button:hover {
  background: #cc0000;
}

/* BELKA UNIJNA */
.belka-unijna {
  background: #fff;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  text-align: center;
  padding: 0;
}

.belka-unijna .container {
padding: 1rem;
}


.belka-unijna img {
    max-width: 1000px;
    width: 100%;
}

/* SEKCJE */
.section.light {
  background: #f5f5f5;
  padding: 3rem 2rem;
}

.section.light {
  background: #f5f5f5 url('img/bg-fala.svg') no-repeat bottom center;
  background-size: cover;
  position: relative;
  overflow: hidden;
}


.section.dark {

  padding: 3rem 2rem;
}

.section h2 {
    font-size: 2.5rem;

    text-align: center;
    color: #111;
    position: relative;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.05);
    text-transform: uppercase;

        letter-spacing: 0.1rem;
}

.section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: #ff0012;
  margin: 1rem auto 0 auto;
  border-radius: 2px;
}




.section i {
  margin-right: 0.5rem;
}



.center-buttons {
  justify-content: center;
}


/* --- SEKCJA: Najważniejsze informacje --- */

.section.dark {
  background: #dfe8fc;

  padding: 3rem 2rem;
}


#informacje {

      background: #dfe8fc url(img/path5.svg) no-repeat bottom center;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
  
}
.section.dark h2 {
  font-size: 2.5rem;

  text-align: center;

  position: relative;
  margin-bottom: 3rem;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.05);
}

.section.dark h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: #ff0012;
  margin: 1rem auto 0 auto;
  border-radius: 2px;
}






/* 🔶 Highlighty z badge’ami */

.info-highlights {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  text-align: center;
}

.highlight-item {
  color: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 160px;
}

.highlight-icon {
    background: transparent;
    color: #fff;
    border-radius: 50%
50%
;
    padding: 1rem;
    margin-bottom: 0.8rem;
    box-shadow: 0 0 0 0px #fec500 inset;
    display: flex
;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    transition: transform 0.2s ease;
    border: 3px dashed #fff;
    /* background: #fff; */
    color: #000;
}

.highlight-icon i {
  font-size: 2rem;
  margin: 0;
}


.highlight-text strong {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.highlight-text span {
  font-size: 1.05rem;
  opacity: 0.9;
  font-weight: 400;
}




/* 🔶 CTA: Zarejestruj się + Info */

.info-cta-group {
  text-align: center;
  margin-bottom: 2.5rem;
}

.info-cta-group p {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.cta-pair {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-pair .btn-primary,
.cta-pair .btn-secondary {
  font-size: 1.1rem;
  padding: 1rem 2rem;
  font-weight: bold;
  border-radius: 0.4rem;
  text-align: center;
}

.btn-primary {
  background: #ff0012;
  color: white;
  transition: background 0.2s;
  display: block;
  width: fit-content;
}

.btn-primary:hover {
  background: #cc0000;
}


/* 🔶 Boxy z info */

.info-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.info-box {
  background: white;
  color: black;
  padding: 2rem 1.5rem;
  border-radius: 0.8rem;
  flex: 1 1 300px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  text-align: left;
}

.info-box i {
  font-size: 1.6rem;
  color: #003dc4;
  margin-bottom: 0.8rem;
  display: block;
}

.info-box h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 800;
}


/* 🔶 Dolne przyciski */

.info-buttons {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn-secondary {
  background: #fec500;
  color: black;
  padding: 0.75rem 1.5rem;
  border-radius: 0.3rem;
  font-weight: bold;
  font-size: 1rem;
  text-align: center;
  transition: background 0.2s ease;
  display: block;
  width: fit-content;
}

.btn-secondary:hover {
  background: #ffd733;
}

.btn-secondary.small {
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary.small i {
  font-size: 1.1rem;
}







/* 🔶 Buttony: program/trasa/regulamin */

.info-buttons.white-outline a {
    /* border: 1px dashed #82a3ec; */
    color: #000;
    background: transparent;
    padding: 0.75rem 1.5rem;
    border-radius: 0.4rem;
    font-weight: bold;
    font-size: 1rem;
    display: inline-flex
;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.25s ease;
    background: white;
}


.info-buttons.white-outline a:hover {
  background: #003dc4;
  color: #fff;
}

/* 🔶 CTA końcowe */

.info-cta-group {
  text-align: center;
  margin-top: 3rem;
}

.info-cta-group p {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.cta-pair {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-pair .btn-primary,
.cta-pair .btn-secondary {
  font-size: 1.1rem;
  padding: 1rem 2rem;
  font-weight: bold;
  border-radius: 0.4rem;
  text-align: center;
}




.informacje-lead {
    max-width: 900px;
    margin: 2rem auto -1rem auto;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.6;
}






#o-biegu {
    background: #f5f5f5 url(img/runner3.png) no-repeat bottom center;
    background-size: contain;
    background-position: -25% bottom;
    position: relative;
    overflow: hidden;
}

#o-biegu::after {
    content: "";
    position: absolute;
    top: 10%;
    right: 0;
    width: 100%;
    height: 50%;
    background: url(img/shoe.png) no-repeat top right;
    background-size: contain;
    background-position: 105% top;
    pointer-events: none;
    opacity: 0.7;
    z-index: 0;
}


.o-biegu-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
  z-index: 1;
}

.o-biegu-box {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
  padding: 2rem;
  flex: 1 1 300px;
  z-index: 1;
}

.o-biegu-box h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.o-biegu-box ul {
  list-style: none;
  padding-left: 0;
  z-index: 1;
}

.o-biegu-box ul li {
  padding: 0.4rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.o-biegu-box ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #003dc4;
  font-weight: bold;
}

.o-biegu-icon {
  font-size: 2.5rem;
  color: #003dc4;
  margin-bottom: 1rem;
}

.dystanse-list {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
}

.dystans-item {
  background: #fec500;
  color: black;
  padding: 0.7rem 1.2rem;
  border-radius: 2rem;
  font-weight: bold;
  font-size: 1.1rem;
  text-align: center;
}



.o-biegu-lead {
  max-width: 900px;
  margin: 0 auto 3rem auto;
  text-align: center;
  font-size: 1.2rem;
  line-height: 1.6;
  z-index: 1;
      position: relative;

}

.o-biegu-lead strong {
  font-weight: 700;
}

.cta-large {
  margin-top: 1.5rem;
  display: inline-block;
  font-size: 1.3rem;
  padding: 1rem 2.5rem;
  border-radius: 0.5rem;
}


/* FORMULARZ – wersja dwukolumnowa */

.register-section {
background-color: #f5f5f5;
  padding: 4rem 2rem;
}

.register-grid {
  display: flex;
  align-items: stretch;
  justify-content: center;
  max-width: 1400px;
  margin: 0 auto;
  gap: 2rem;
  flex-wrap: wrap;
  width: 100%;
}

.graphic-area {
  flex: 1 1 35%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.graphic-area img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    object-fit: cover;
    margin-left: -25%;
}

.form-area {
  flex: 1 1 35%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.register-section h2 {

  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.form-pair {
  display: contents;
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-ebok .form-field {
  margin-top: 1rem;
}

.form-field label {
  font-weight: 700;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;

  letter-spacing: 0.3px;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"],
select,
textarea {
  background: white;
  color: black;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  border-radius: 0.4rem;
  border: 1px solid #ccc;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
select:focus {
  border-color: #ff0012;
  box-shadow: 0 0 0 2px rgba(255, 0, 18, 0.3);
}

/* === CHECKBOXY / ZGODY === */
.checkbox-field {
  grid-column: span 2;
  border: none;
  padding: 0;
  margin: 1rem 0 0;
}

.checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
  color: #eee;
}

.checkbox-wrapper input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1.25rem;       /* 20px */
  height: 1.25rem;
  border: 2px solid #fff;
  background: #ddd;
  border-radius: 4px;
  margin-top: 0.2rem;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
}

.checkbox-wrapper input[type="checkbox"]:checked::before {
  content: "✔";
  position: absolute;
  top: 0;
  left: 3px;
  font-size: 1rem;
  color: #000;
}


.checkbox-wrapper label {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #343435;
    margin: 0;
    display: block;
    font-weight: 500;
}

/* Obsługa ukrytego legend i screen readerów */
.sr-only {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.form-actions {
  grid-column: span 2;
  text-align: right;
  margin-top: 1rem;
}

.btn-primary {
  background: #ff0012;
  color: white;
  padding: 0.7rem 1.2rem;
  border: none;
  border-radius: 0.4rem;
  font-size: 1rem;
  font-weight: bold;
  transition: background 0.25s, transform 0.2s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  background: #cc0000;
  transform: translateY(-2px);
}

.btn-primary.full {
  width: 100%;
}

/* === RESPONSYWNOŚĆ === */
@media (max-width: 1024px) {
  .register-grid {
    flex-direction: column;
    align-items: center;
  }

  .graphic-area,
  .form-area {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .graphic-area img {
    max-height: 300px;
    width: auto;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .checkbox-field,
  .form-actions {
    grid-column: span 1;
  }
}






/* FOOTER */
.site-footer {
  background: #111;
  color: white;
  padding: 3rem 1rem 2rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-col {
  flex: 1 1 200px;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #fec500;
}

.footer-col p,
.footer-col a {
  color: #ccc;
  text-decoration: none;
  line-height: 1.6;
}

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

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 0.1rem;
}

.social-icons a {
  display: inline-block;
  margin-right: 0.75rem;
  font-size: 1.2rem;
  color: #fec500;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  text-align: center;
  padding-top: 1rem;
  font-size: 0.8rem;
  color: #aaa;
}







/* RESPONSYWNOŚĆ */
@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .date {
    font-size: 2rem;
  }

  .info-grid {
    flex-direction: column;
  }

  .form-actions {
    text-align: center;
  }
}




/* === FOOTER: tylko mobile layout === */
@media (max-width: 768px) {
  .footer-grid {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .footer-col {
    flex: 1 1 100%;
  }

  .social-icons a {
    margin-right: 1rem;
  }
}


.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: none;
}

/* Odmiany kierunkowe */
.scroll-left {
  transform: translateX(-40px);
}

.scroll-right {
  transform: translateX(40px);
}

.scroll-top {
  transform: translateY(-40px);
}

.scroll-zoom {
  transform: scale(0.95);
}










/* MINI HERO */
.mini-hero {
  background-color: #003dc4;
  color: white;
  padding: 0rem 0;
  overflow: hidden;
}

.mini-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 0;
}

.mini-hero-text {
  flex: 1 1 60%;
  min-width: 280px;
}

.mini-hero-title {
  font-size: 3.6rem;

  font-weight: bold;
  margin: 0.5rem 0 1rem;
  line-height: 1.1;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.25);
}

.mini-hero-meta {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 1.4rem;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.mini-hero-meta .date {
  color: #FF1B1B;
  font-family: 'Riffic', sans-serif;
  font-size: 1.6rem;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
}

.mini-hero-meta .place {
  font-size: 1.5rem;
    color: white;
   margin-bottom: 0;
    text-transform: uppercase;
    margin-top: -10px;
}

.mini-hero-img {
  flex: 1 1 30%;
  text-align: right;
}

.mini-hero-img img {
  height: 250px;
  max-width: 100%;
  opacity: 0.95;
}

.distance-badge {
  background: #ff0012;
  display: inline-block;
  padding: 0.3rem 1rem;
  border-radius: 2rem;
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}



/* === MAPKA === */
.mapka {
  margin-top: 3rem;
  text-align: center;
}

.mapka img {
  max-width: 100%;
  border-radius: 1rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
}


/* === LISTY W BOXACH INFO === */
.info-box ul li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-box ul li i {
  color: var(--accent-blue, #003dc4);
  font-size: 1.2rem;
}


/* === GRIDS === */
.info-grid.two-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.info-grid.three-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}


/* === BADGE: DYSTANSE === */
.badge-yellow {
  background: #fec500;
  color: #000;
  padding: 0.3rem 0.8rem;
  font-weight: bold;
  border-radius: 1.2rem;
  display: inline-block;
  font-size: 1rem;
}



.z-kropka {
  position: relative;
  display: inline-block;
}

.z-kropka::after {
    content: "";
    position: absolute;
    top: -0.2em;
    left: 50%;
    transform: translateX(-50%);
    width: 0.25em;
    height: 0.25em;
    background-color: currentColor;
    border-radius: 50%;
}







.o-biegu-layout--fullwidth {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.fundusze-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}


.o-biegu-layout a {
  font-weight: 500;
  color: #001a94;
}

.o-biegu-layout a:hover {
text-decoration: underline;
}

.o-biegu-layout--fullwidth p {
  margin-bottom: 1rem;
}


.form-message {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1.1rem;
}

.success-message {
  background-color: #d4edda;
  color: #155724;
  border: 2px solid #c3e6cb;
}

.error-message {
  background-color: #f8d7da;
  color: #721c24;
  border: 2px solid #f5c6cb;
}








/* === STREFA ZAWODNIKA === */

.access-denied-box {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 2rem;
}

/* Alert box (np. dla niezalogowanych) */
.alert-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background-color: #f8d7da;
  color: #721c24;
  border: 2px solid #f5c6cb;
  border-radius: 0.75rem;
  padding: 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
}

.alert-box i {
  flex-shrink: 0;
  font-size: 2rem;
}

/* Dla sekcji z odzyskiwaniem dostępu */
.recover-box {
  background: white;
  border-radius: 0.75rem;
  border: 2px solid #eee;
  padding: 2rem;
  box-shadow: 0 0 15px rgba(0,0,0,0.04);
}

.recover-box h3 {
  font-size: 1.4rem;

  margin: 0.5rem 0 1rem;
  color: #003dc4;
}

.recover-box p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.recover-form input[type="email"] {
  padding: 0.75rem 1rem;
  border-radius: 0.4rem;
  border: 1px solid #ccc;
  font-size: 1rem;
  width: 100%;
  max-width: 400px;
}

.recover-form input[type="email"]:focus {
  border-color: #003dc4;
  box-shadow: 0 0 0 2px rgba(0, 61, 196, 0.15);
  outline: none;
}

.button-wrapper {
  margin-top: 1rem;
}

/* Informacja dla zalogowanego użytkownika */
.user-info-box {
  background: white;
  border-radius: 0.75rem;
  padding: 2rem;
  border: 2px solid #eee;
  box-shadow: 0 0 15px rgba(0,0,0,0.04);
  margin-top: 2rem;
}

.user-info-box p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.user-info-box .info-box {
  background: #f5f5f5;
  padding: 1.5rem;
  border-radius: 0.6rem;
  color: #333;
  line-height: 1.6;
}

.user-info-box .info-box i {
  color: #003dc4;
  font-size: 1.5rem;
  margin-right: 0.5rem;
  vertical-align: middle;
}



.regulamin-list li {
    padding-left: 0.2rem;
    margin-left: 1.5rem;
    margin-top: 0.5rem;
    line-height: 1.1;
}


.o-biegu-box .regulamin-list li{
    padding: 0.1rem 0;
    position: relative;
    padding-left: 1.1rem;
}


.yellowbox {
  background: rgba(254,197,0,0.2);
}

.regbox {
  margin-bottom: 1rem;
}





/* STREFA ZAWODNIKA */


#strefa-zawodnika .btn-primary, #strefa-zawodnika .btn-secondary {
    width: fit-content;
    display: block;
    margin: auto;
    border: 0;
    padding: 1rem 1.5rem;
    min-width: 200px;
    text-align: center;
}

#strefa-zawodnika .form-field label {
  color: inherit;
}


.o-biegu-layout .fundusze-links a, .o-biegu-layout .fundusze-links a {
  color: #000;
  font-weight: 600;
  text-decoration: none !important;
}


#strefa-zawodnika .dystans-item {
  font-weight: normal;
}


/* ===== GALERIA ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 2rem;
}

.gallery-item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
  object-fit: cover;
}

.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.gallery-item:hover img {
  transform: scale(1.05);
}




.social-fixed {
  position: fixed;
  top: 40%;
  left: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 9999;
  padding: 0.4rem 0rem;
}

.social-fixed a {
  background: #001a94;
  color: #fff;
  width: 42px;
  height: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 0 5px 5px 0;
  transition: background 0.3s;
  font-size: 1.4rem;
}

.social-fixed a:hover {
  background: #fec500;
}

@media (max-width: 768px) {
  .social-fixed {
    display: none;
  }
}




.form-success a {
text-decoration: none;
color: #fff;
margin-top: 1rem;
}


.file-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  font-size: 0.9rem;
}

.file-list li {
  padding: 0.25rem 0;
  border-bottom: 1px solid #ddd;
}
