/* =========================================================
   ELPRO – style.css (wersja w pełni responsywna)
   Wygląd bez zmian; zmienione są jednostki, siatki i punkty
   przełamania tak, by strona skalowała się na każdym ekranie.
   ========================================================= */

/* ---------- Zmienne ---------- */
:root {
  --teal: #297d81;
  --teal-dark: #1e5c5f;
  --teal-light: #49bcc2;

  --logo-h: 50px;
  --logo-w: calc(var(--logo-h) * 2.8);          /* proporcje 140x50 jak w oryginale */
  --header-h: calc(var(--logo-h) + 30px);       /* wysokość stałego nagłówka */
  --gutter: clamp(12px, 3vw, 20px);
  --container: 1200px;

  --outline:
    -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000,
    -3px 0 0 #000, 3px 0 0 #000, 0 -3px 0 #000, 0 3px 0 #000;
}

@media (max-width: 600px) {
  :root {
    --outline:
      -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000,
      -2px 0 0 #000, 2px 0 0 #000, 0 -2px 0 #000, 0 2px 0 #000;
  }
}

@media (min-width: 1600px) {
  :root { --container: 1400px; }
}

/* ---------- Baza ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body, * {
  font-family: 'Ubuntu', sans-serif !important;
}

html {
  margin: 0;
  padding: 0;
  /* płynna skala: 15px na telefonie → 19px na dużych monitorach */
  font-size: clamp(15px, 0.85rem + 0.3vw, 19px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background-size: cover;
  transition: background-size 0.4s ease, background-image 1s ease-in-out;
  background-attachment: fixed;
  background-color: var(--teal);
}

img, svg, video, iframe {
  max-width: 100%;
}

img {
  height: auto;
}

h1, h2, h3, p, li, a, button {
  overflow-wrap: break-word;
}

a:visited,
a:active,
a[href^="tel"],
a[href^="mailto"] {
  color: white;
  text-decoration: none;
}

.tlo {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: url("images/obraz2.png") center center no-repeat;
  background-size: cover;
}

.content {
  position: relative;
  z-index: 1;
  font-family: 'Poppins', sans-serif;
  color: white;
  padding: 0 var(--gutter) 24px;
}

/* strona główna: bez dolnego marginesu, żeby hero wypełniało ekran dokładnie */
.content:has(.hero-glass) {
  padding: 0;
}

@media (max-width: 768px) {
  body { background-attachment: scroll; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Nagłówek ---------- */
header {
  background: var(--teal);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.18);
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  height: var(--header-h);
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 0 var(--gutter);
}

#logo2 {
  display: flex;
  align-items: center;
  height: 100%;
}

#logo2 a {
  display: block;
  line-height: 0;
}

#logo {
  height: var(--logo-h);
  width: var(--logo-w);
  display: block;
  margin-top: 0;
  margin-left: clamp(0px, 3vw, 50px);
  transition: transform 0.3s ease;
  user-select: none;
  -webkit-user-select: none;
}

#logo:hover {
  transform: scale(1.03);
}

/* Nawigacja – desktop */
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

nav ul li {
  margin-left: clamp(8px, 1.4vw, 20px);
  margin-right: clamp(8px, 1.4vw, 20px);
}

nav ul li a {
  position: relative;
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding-bottom: 10px;
  white-space: nowrap;
  font-size: clamp(0.8rem, 0.5rem + 0.6vw, 1rem);
}

.menu-icon { display: none; font-size: 24px; cursor: pointer; }
.menu-toggle { display: none; }

@media (min-width: 1025px) and (max-width: 1295px) {
  :root { --logo-h: 40px; }
}

/* Tablet + telefon: boczny panel / pełny ekran */
@media (max-width: 1024px) {
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 0 0 auto;
    width: 26px;
    height: 20px;
    cursor: pointer;
    transition: transform 0.25s ease;
    z-index: 1100;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  /* większy obszar dotyku bez zmiany wyglądu */
  .menu-toggle::before {
    content: '';
    position: absolute;
    inset: -14px;
  }
  .menu-toggle { position: relative; }

  .menu-toggle span {
    display: block;
    height: 3px;
    background: white;
    border-radius: 5px;
    transition: all 0.3s ease;
  }

  .menu-toggle.active span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

  nav {
    position: fixed;
    top: 0;
    right: -320px;
    width: min(280px, 85vw);
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;                 /* przewijanie w orientacji poziomej */
    background-color: var(--teal-dark);
    padding: 90px 20px 30px;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    z-index: 1000;
  }

  nav.active {
    right: 0;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.4);
  }

  nav ul {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

  nav ul li {
    margin: 0;
    width: 100%;
    text-align: left;
    border: none !important;
  }

  nav a,
  nav ul li a {
    display: block;
    padding: 12px 16px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.25s ease;
    position: relative;
    text-align: left;
    white-space: normal;
  }

  nav a::after { display: none !important; }

  nav a:hover,
  nav a.active {
    background-color: rgba(255, 255, 255, 0.15);
  }
}

@media (max-width: 768px) {
  nav {
    right: -100%;
    width: 100%;
    padding: 90px 25px 30px;
  }
  nav.active { right: 0; box-shadow: none; }
  nav a, nav ul li a { padding: 14px 20px; font-size: 1.05rem; }
}

@media (max-width: 360px) {
  :root { --logo-h: 42px; }
}

header a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
}

header a:hover::after,
header a.active::after { opacity: 1; }

#logo2 a::after { border: none; opacity: 0 !important; }

/* Desktop: minimalistyczne linki, cienkie podkreślenie rosnące od środka */
@media (min-width: 1025px) {
  nav ul { align-items: center; gap: clamp(14px, 2vw, 32px); }

  nav ul li { margin: 0; }

  nav ul li a {
    display: block;
    padding: 6px 0;
    font-weight: 500;
    font-size: clamp(0.78rem, 0.45rem + 0.5vw, 0.9rem);
    letter-spacing: 0.08em;
    opacity: 0.8;
    transition: opacity 0.25s ease;
  }

  nav ul li a::after {
    display: block;
    height: 1.5px;
    opacity: 1;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
  }

  nav ul li a:hover,
  nav ul li a.active { opacity: 1; }

  nav ul li a:hover::after,
  nav ul li a.active::after { transform: scaleX(1); }
}

/* ---------- Wspólne: nagłówki sekcji i przesunięcie pod nagłówek ---------- */
.page-title,
#oferta,
#kontakt,
#realizacje,
#wynajem_title,
#praca_title {
  scroll-margin-top: var(--header-h);
}

/* Strona główna (starsze style) */
#main { padding-top: calc(var(--header-h) + 3rem); text-align: center; }
#main a { text-decoration: none; }
#main h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3.3rem); color: white; user-select: none; outline: none; }

/* ---------- O nas ---------- */
.page-title {
  color: white;
  padding: calc(var(--header-h) + clamp(16px, 4vw, 40px)) 20px clamp(24px, 4vw, 40px);
  text-align: center;
  text-shadow: var(--outline);
}

.page-title h1 {
  font-size: clamp(1.6rem, 1rem + 2.4vw, 2.6rem);
  line-height: 1.2;
  margin: 0 auto 15px;
  max-width: 28ch;
}

.page-title p {
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  margin: 0 auto 20px;
  max-width: 60ch;
}

.onas-wrapper {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter) 60px;
}

.onas-box {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  padding: clamp(22px, 5vw, 40px) clamp(16px, 4vw, 30px);
  text-align: center;
  color: #333;
  margin: 0 auto clamp(36px, 6vw, 60px);
  max-width: 900px;
  line-height: 1.6;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
}

.onas-box h2 {
  color: var(--teal);
  margin-top: 0;
  margin-bottom: 15px;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
}

.sekcja-title {
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.75rem);
  text-align: center;
  color: white;
  border-bottom: 2px solid #e0e0e0;
  margin: 0 auto clamp(24px, 4vw, 40px);
  padding-bottom: 10px;
  max-width: 640px;
  text-shadow: var(--outline);
}

.uslugi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(14px, 2vw, 20px);
}

.usluga-card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  padding: 30px 20px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.usluga-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
}

.usluga-card h3 {
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.5rem);
  margin: 0 0 15px;
  color: var(--teal);
}

.usluga-card p {
  font-size: 1rem;
  color: black;
  line-height: 1.5;
  margin: 0;
}

.cta-button {
  display: inline-block;
  background-color: var(--teal);
  color: white;
  padding: 14px 28px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.1rem);
  transition: background 0.3s, transform 0.2s;
  text-shadow: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.cta-button:hover {
  background-color: var(--teal-light);
  transform: scale(1.05);
}

@media (max-width: 480px) {
  .cta-button { display: block; text-align: center; }
}

/* ---------- Oferta ---------- */
#oferta {
  margin: calc(var(--header-h) + clamp(16px, 4vw, 36px)) auto 0;
  width: 100%;
  max-width: 980px;
  padding: 0;
}

.oferta-head {
  text-align: center;
  margin-bottom: clamp(16px, 3vw, 26px);
  text-shadow: var(--outline);
}

.oferta-head h1 {
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem);
  line-height: 1.2;
  margin: 0 0 8px;
}

.oferta-head p {
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.1rem);
  margin: 0 auto;
  max-width: 55ch;
}

/* jeden zwarty panel z listą */
#lista-ofert {
  list-style: none;
  margin: 0;
  padding: 6px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 12px;
  overflow: hidden;
}

#lista-ofert li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin: 0;
  color: #1c2b2c;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  border-bottom: 1px solid #e6eeee;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

/* ostatni wiersz w każdej kolumnie bez linii */
#lista-ofert li:last-child,
#lista-ofert li:nth-last-child(2):nth-child(odd) {
  border-bottom-color: transparent;
}

/* pionowy akcent po lewej, widoczny po najechaniu */
#lista-ofert li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 3px;
  border-radius: 3px;
  background: var(--teal);
  transform: scaleY(0);
  transition: transform 0.2s ease;
}

#lista-ofert li svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: var(--teal);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* strzałka po prawej */
#lista-ofert li::after {
  content: '\2192';
  margin-left: auto;
  padding-left: 8px;
  color: var(--teal);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#lista-ofert li:hover {
  background: #eef6f6;
  color: var(--teal-dark);
}

#lista-ofert li:hover::before { transform: scaleY(1); }
#lista-ofert li:hover::after { opacity: 1; transform: translateX(0); }

#lista-ofert li:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: -2px;
}

.oferta-cta {
  margin-top: clamp(18px, 3vw, 28px);
  text-align: center;
  text-shadow: var(--outline);
}

.oferta-cta p {
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.1rem);
  margin: 0 0 12px;
  font-weight: bold;
}

.oferta-cta .cta-button {
  padding: 11px 24px;
  font-size: 1rem;
}

@media (max-width: 700px) {
  #lista-ofert { grid-template-columns: 1fr; }
  #lista-ofert li { padding: 13px 14px; }
  #lista-ofert li:nth-last-child(2):nth-child(odd) { border-bottom-color: #e6eeee; }
}

/* ekrany dotykowe: strzałka widoczna zawsze, bez efektu hover */
@media (hover: none) {
  #lista-ofert li::after { opacity: 0.5; transform: none; }
  #lista-ofert li:hover { background: transparent; color: #1c2b2c; }
  #lista-ofert li:hover::before { transform: scaleY(0); }
  .usluga-card:hover,
  #kafel:hover,
  .kafel:hover,
  #kafelki > *:hover { transform: none; }
}

/* ---------- Modal ---------- */
#modal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 16px;
  background: rgba(10, 10, 10, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(12px) brightness(0.9);
  -webkit-backdrop-filter: blur(12px) brightness(0.9);
  z-index: 2000;
}

#modal.show { opacity: 1; pointer-events: all; }

.modal-content {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(25px) saturate(160%);
  -webkit-backdrop-filter: blur(25px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 18px;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.15), inset 0 0 25px rgba(255, 255, 255, 0.05);
  padding: clamp(24px, 5vw, 35px) clamp(20px, 5vw, 45px);
  text-align: center;
  color: #fff;
  font-family: "Poppins", sans-serif;
  max-width: 420px;
  width: 100%;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  position: relative;
  animation: glassPop 0.4s ease forwards;
}

@keyframes glassPop {
  from { transform: scale(0.8) translateY(30px); opacity: 0; filter: blur(6px); }
  to   { transform: scale(1) translateY(0); opacity: 1; filter: blur(0); }
}

#close-modal {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 26px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}
#close-modal:hover { color: #fff; }

#modal-title {
  font-size: 1.6em;
  font-weight: 600;
  margin-bottom: 12px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.25);
}

#modal-text {
  font-size: 1.1em;
  line-height: 1.5;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.9);
}

#ok-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 10px 28px;
  font-size: 1em;
  color: #fff;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
#ok-btn:hover { background: rgba(255, 255, 255, 0.35); transform: scale(1.05); }

/* ---------- Kontakt ---------- */
/* strona kontakt: box wyśrodkowany w poziomie i w pionie (pod paskiem nagłówka) */
.content:has(#kontakt) {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--header-h) + clamp(16px, 4vw, 40px));
  padding-bottom: clamp(16px, 4vw, 40px);
}

#kontakt {
  margin: auto;
  width: 100%;
  max-width: 800px;
  background: white;
  padding: clamp(18px, 4vw, 30px);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

.contact-info {
  margin-bottom: 10px;
  color: black;
}

.contact-info h1 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); margin: 0 0 0.5em; }
.contact-info h2 { font-size: clamp(1rem, 0.95rem + 0.4vw, 1.3rem); margin: 0.5em 0; }

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.contact-item svg {
  flex: 0 0 24px;
  margin-right: 10px;
  fill: #006064;
  width: 24px;
  height: 24px;
}

.contact-item a,
.contact-item span {
  color: #000;
  text-decoration: none;
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.nip {
  -webkit-touch-callout: none;
  -webkit-user-select: text;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -webkit-text-fill-color: #000;
  user-select: text;
}

/* ---------- Realizacje ---------- */
#realizacje {
  margin: calc(var(--header-h) + clamp(16px, 4vw, 40px)) auto 0;
  padding: 0;
  max-width: var(--container);
  width: 100%;
}

#realizacje h2 {
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.75rem);
  text-align: center;
  color: white;
  border-bottom: 2px solid var(--teal);
  margin: 0 0 clamp(24px, 4vw, 40px);
  padding-bottom: 8px;
  text-shadow: var(--outline);
}

.realizacje-wrapper {
  display: flex;
  gap: clamp(16px, 2.5vw, 30px);
  align-items: flex-start;
  width: 100%;
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 0 0 clamp(250px, 34%, 450px);
  min-width: 0;
}

.accordion .item {
  border: 2px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

/* pusty szkic na końcu listy nie ma się pokazywać */
.accordion .item:has(.accordion-btn:empty) { display: none; }

.accordion-btn {
  width: 100%;
  text-align: left;
  background-color: var(--teal);
  color: white;
  padding: 15px 20px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  font-size: clamp(0.9rem, 0.85rem + 0.25vw, 1rem);
  line-height: 1.35;
  transition: background-color 0.3s;
}

.accordion-btn:hover { background-color: var(--teal-light); }
.accordion-btn.active { background-color: var(--teal-dark); }
.accordion-btn:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }

.accordion-content { display: none; }

/* Mapa – obcina pasek Google, wysokość płynna */
.mapka {
  position: relative !important;
  width: 100% !important;
  height: clamp(260px, 55vw, 450px) !important;
  overflow: hidden !important;
  border-radius: 8px;
  margin: 15px 0;
}

.mapka iframe {
  position: absolute !important;
  top: -68px !important;
  left: 0 !important;
  width: 100% !important;
  height: calc(100% + 68px) !important;
  border: none !important;
  display: block !important;
}

/* Układ „stadion": tekst na całą szerokość, zdjęcia 2/3 obok siebie */
.stadion {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stadion > * { width: 100%; }

.stadion p,
.stadion ul { margin-top: 0; margin-bottom: 10px; }

.stadion img:nth-of-type(1) {
  width: 100%;
  max-height: clamp(180px, 40vw, 350px);
  object-fit: cover;
  border-radius: 8px;
}

.stadion img:nth-of-type(2),
.stadion img:nth-of-type(3) {
  width: calc(50% - 5px);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 0 !important;
}

.desktop-panel {
  flex: 1 1 0;
  min-width: 0;
  background: #fff;
  border-radius: 12px;
  padding: clamp(18px, 3vw, 30px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  color: black;
  min-height: 400px;
}

#desktop-panel-content h3 {
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.4rem) !important;
  overflow-wrap: break-word;
}

#desktop-panel-content p {
  line-height: 1.6;
  font-size: 1rem;
  margin-bottom: 15px;
}

#desktop-panel-content ul { padding-left: 1.2em; line-height: 1.5; }

#desktop-panel-content img {
  max-width: 100%;
  border-radius: 8px;
  display: block;
  margin-top: 15px;
}

/* Telefon: akordeon na całą szerokość */
@media (max-width: 768px) {
  .realizacje-wrapper { flex-direction: column; }
  .desktop-panel { display: none; }

  .accordion {
    flex: 1 1 auto;
    width: 100%;
    gap: 16px;
  }

  .accordion-btn { padding: 12px 15px; }

  .accordion-content {
    display: block;
    max-height: 0;
    overflow: hidden;
    padding: 0 16px;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background-color: #f9f9f9;
    font-size: 0.95rem;
    line-height: 1.6;
    color: black;
  }

  .accordion-content.open { padding: 15px 16px; }

  .accordion-content ul { padding-left: 1.2em; }

  .accordion-content img {
    max-width: 100%;
    margin-top: 15px;
    border-radius: 8px;
    display: block;
  }

  .stadion img { margin-top: 0 !important; }
}

/* ---------- Wynajem ---------- */
#wynajem_title {
  color: white;
  padding: calc(var(--header-h) + clamp(16px, 4vw, 40px)) 20px clamp(24px, 5vw, 60px);
  text-align: center;
  text-shadow: var(--outline);
}

#wynajem_title h1 {
  font-size: clamp(1.6rem, 1rem + 2.4vw, 2.6rem);
  line-height: 1.2;
  margin: 0 0 10px;
  text-shadow: var(--outline);
}

#wynajem_title p {
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  margin: 0 auto;
  max-width: 60ch;
}

#kafelki {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(14px, 2vw, 20px);
  padding: clamp(16px, 3vw, 40px) 0;
  max-width: var(--container);
  margin: 0 auto;
}

#kafelki > *,
.kafel,
#kafel {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  padding: 30px 20px;
  transition: transform 0.3s, box-shadow 0.3s;
}

#kafelki > *:hover,
.kafel:hover,
#kafel:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
}

#kafelki h3,
.kafel h3,
#kafel h3 {
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.5rem);
  margin: 0 0 15px;
  color: var(--teal);
}

#kafelki p,
.kafel p,
#kafel p {
  font-size: 1rem;
  margin: 0;
  color: black;
  line-height: 1.5;
}

/* ---------- Praca (starsza podstrona) ---------- */
#praca * {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
  background-color: white;
  color: #333;
  line-height: 1.6;
}

#praca_title {
  padding: calc(var(--header-h) + 2rem) 20px 2rem;
  text-align: center;
  font-size: clamp(1.2rem, 1rem + 1vw, 1.5rem);
  margin-bottom: 10px;
  text-shadow: var(--outline);
}

#praca_lista {
  background-color: white;
  padding: clamp(18px, 4vw, 30px);
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

#praca_lista h2 { color: var(--teal); margin-bottom: 15px; }
#praca_lista ul { list-style-type: disc; padding-left: 20px; }

.apply-section { text-align: center; }

.apply-button {
  display: inline-block;
  padding: 15px 25px;
  background-color: var(--teal);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s;
}
.apply-button:hover { background-color: var(--teal-light); }

/* ---------- Strona główna – hero ---------- */
.bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 1s ease-in-out;
  pointer-events: none;
  will-change: opacity;
}

.bg1 { z-index: -2; opacity: 1; }
.bg2 { z-index: -1; opacity: 0; }

.hero-glass {
  min-height: 100vh;
  min-height: 100dvh;                 /* poprawna wysokość na telefonach z paskiem adresu */
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: calc(var(--header-h) + 16px) var(--gutter) 16px;
}

.hero-glass-content {
  width: 100%;
  max-width: 900px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-radius: clamp(14px, 2vw, 20px);
  padding: clamp(24px, 5vw, 50px) clamp(20px, 6vw, 70px);
  text-align: center;
  color: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: popIn 0.6s ease;
}

.hero-glass-content .logo {
  max-width: min(100%, 320px);
  height: auto;
  margin-bottom: clamp(10px, 2vw, 20px);
}

.hero-glass-content h1 {
  font-size: clamp(1.35rem, 0.9rem + 2vw, 2.4rem);
  line-height: 1.3;
  margin: 0 0 0.6em;
}

.hero-glass-content p {
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem);
  margin: 0 0 0.5em;
}

@keyframes popIn {
  from { transform: scale(0.8); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.btn-glass {
  display: inline-block;
  margin: 12px 6px 0;
  padding: 12px clamp(22px, 4vw, 30px);
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  transition: 0.3s;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.05);
}

@media (max-width: 600px) {
  .btn-glass {
    display: block;
    width: 100%;
    margin: 14px 0 0;
    text-align: center;
  }
}

/* niski ekran (telefon poziomo) */
@media (max-height: 480px) and (orientation: landscape) {
  .hero-glass-content .logo { max-width: 120px; margin-bottom: 6px; }
  .hero-glass-content { padding: 14px 24px; }
  .btn-glass { display: inline-block; width: auto; margin: 8px 6px 0; }
}

/* ---------- Referencje / galeria ---------- */
#ref {
  font-size: clamp(2rem, 1rem + 4vw, 4.4rem);
  padding: clamp(40px, 8vw, 100px);
  text-align: center;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(14px, 2vw, 20px);
  padding: 0 var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}

.photo-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

.photo-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  max-height: 550px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

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

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 20px;
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.photo-item:hover .overlay { transform: translateY(0); }

/* ekrany dotykowe nie mają hover – podpis ma być zawsze widoczny */
@media (hover: none) {
  .overlay { transform: translateY(0); padding: 12px; }
  .photo-item:hover img { transform: none; }
}

.overlay h3 { font-size: 1.2em; margin: 0 0 10px; }
.overlay p { font-size: 0.9em; margin: 0; }

.zoom-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 3;
}
.zoom-icon:hover { background: rgba(104, 104, 104, 0.685); }

.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active { visibility: visible; opacity: 1; }

.lightbox img {
  max-width: 94%;
  max-height: 90vh;
  max-height: 90dvh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 22px;
  font-size: 32px;
  color: white;
  cursor: pointer;
  z-index: 10000;
  transition: transform 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.lightbox-close:hover { transform: scale(1.2); }
