html, body {
  height: 100%;
  width: 100%;         /* ✅ upewniamy się, że są pełnej szerokości */
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  width: 100%;         /* ✅ aby nie zwężał się w elastycznym układzie */
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #000000;
}

header {
    background-color: #006633;
    color: white;
}

.header-inner {
    padding: 1em 2em;
    max-width: 1200px;
    margin: 0 auto;
}

header h1 {
    margin: 0;
    font-size: 1.8em;
}

header, footer {
  width: 100%;
}

nav {
    background-color: #004d26;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0.5em 2em;
    display: flex;
    gap: 2em;
    max-width: 1200px;
    margin: auto;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

main {
    background-color: #ffffff;
    padding: 2em;
    max-width: 1200px;
    margin: auto;
}

section {
    margin-bottom: 3em;
}

footer {
    background-color: #f0f0f0;
    text-align: center;
    padding: 1em;
    font-size: 0.9em;
    color: #666;
}
.logo {
    height: 80px;
    margin-right: 20px;
    vertical-align: middle;
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}


nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease;
    display: inline-block;
}

/* Efekt powiększenia po najechaniu */
nav a:hover {
    transform: scale(1.2);
}

/* Styl nagłówka z logo i tytułem (jeśli jeszcze nie masz) */
.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    height: 60px;
    vertical-align: middle;
    margin-right: 10px;
}

/* Reszta stylów... */

nav ul li.home-icon {
    display: flex;
    align-items: center;
}

nav ul li.home-icon svg {
    display: block;
    fill: white;
    transition: transform 0.3s ease;
}

nav ul li.home-icon a:hover svg {
    transform: scale(1.3);
}

/* Linki menu - powiększenie na hover */
nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease;
    display: inline-block;
}

nav a:hover {
    transform: scale(1.2);
}

#dzialalnosc-naukowa p {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    text-align: justify;
    color: #333333;
    max-width: 900px;
    margin: 1.5em auto;
    padding: 0 1em;
}

#dzialalnosc-naukowa {
    padding: 2em 0;
    background-color: #f9f9f9;
}
#pracownicy {
  max-width: 100%;
  margin: 2em auto;
  padding: 0 2em;
  color: #333333;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* każdy blok sekcji: kierownik, adiunkci itd. */
#pracownicy section {
  margin-bottom: 5em;
}


/* nagłówki sekcji */
#pracownicy h2 {
  font-size: 25px;
  font-weight: bold;
  color: #003366;
  text-align: center;
  margin-top: 3em;
  margin-bottom: 2em;
  
}

/* paragrafy */
#pracownicy p {
  font-size: 17px;
  line-height: 1.6;
  text-align: justify;
  margin-bottom: 1em;
  max-width: 100%;
  padding: 0 2em;

}

#adres-katedry {
  margin-top: 3em;
  padding-top: 1em;
  border-top: 1px solid #ccc;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
}

.adres-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5em;
  flex-wrap: wrap;
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
}

.logo-agh {
  width: 80px; /* lub np. height: 80px jeśli zależy Ci na wysokości */
  height: auto;
}

#aparatura {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  max-width: 1000px;
  margin: 2em auto;
  padding: 0 1em;
  text-align: center;
}

#aparatura h2 {
  font-size: 24px;
  margin-bottom: 1em;
  color: #003366;
}

.kafelki-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3em 4em; /* większe odstępy: 3em w pionie, 4em w poziomie */
  justify-content: center;
  align-items: center;
  max-width: 1000px;
  margin: 2em auto 4em auto;
  padding: 0 1em;
}

.kafelek {
  background-color: #dce7de; /* jasna zieleń z nutą szarości */
  padding: 2em;
  border-radius: 16px;
  text-decoration: none;
  color: #1e1e1e;
  font-size: 18px;
  font-weight: 500;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kafelek:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.siatka-pracownikow {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  justify-content: center; /* wyśrodkowanie całego układu */
  align-items: flex-start;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1em;
 }

.pracownik {
  width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-family: "Segoe UI", Tahoma, sans-serif;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  border-radius: 8px;
  padding: 1em;
  box-sizing: border-box;
}

.zdjecie-placeholder {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1;   /* ✅ gwarantuje kwadrat */
  background-color: #dce7de;
  border-radius: 8px;
  margin-bottom: 0.5em;
}

.nazwisko {
  font-weight: bold;
  font-size: 15px;
  margin-bottom: 0.5em;
  text-align: center;
}
.nazwisko a {
  text-decoration: none;
  color: #000;
  transition: transform 0.2s ease;
  display: inline-block;
}

.nazwisko a:hover {
  transform: scale(1.1);
}

.linki {
  display: flex;
  gap: 0.4em;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.linki a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: #dce7de;
  color: #000000;
  font-weight: normal;
  text-decoration: none;
  border-radius: 6px;
  font-size: 11px;
  line-height: 40px;
  text-align: center;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.linki a:hover {
  transform: scale(1.1);
  background-color: #cbd8ce;
}
/* Kafelek kierownika */
.pracownik.kierownik {
  width: 240px;
  background-color: #dce7de;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start; /* trzyma rzeczy przy górze */
  transform: translateY(-70px);
  margin-bottom: -3.5em;
}

/* Zdjęcie – kwadratowe */
.zdjecie-placeholder {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1;   /* ✅ gwarantuje kwadrat */
  background-color: #dce7de;
  border-radius: 8px;
  margin-bottom: 0.5em;
}

/* Nazwisko kierownika – większe */
.pracownik.kierownik .nazwisko a,
.pracownik.kierownik .nazwisko {
  font-size: 18px;
}

/* Linki kierownika – większe przyciski */
.pracownik.kierownik .linki a {
  width: 50px;
  height: 50px;
  font-size: 13px;
  line-height: 50px;
}
.pracownik.kierownik {
  width: 240px;
  background-color: #eef3f0;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  position: relative;
}

.pracownik.kierownik .rola {
  font-size: 18px;
  font-weight: bold;
  color: #003366;
  margin-top: 0;
  margin-bottom: 1.3em;
  padding-top: 0.2em;
  text-align: center;
  width: 100%;
}
#pracownicy-samodzielni h2 {
  margin-bottom: 5em;
}

.gora-kafla {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4em;
  padding-top: 0.6em;
  padding-bottom: 0.6em;
}

#publikacje {
  max-width: 1400px;
  margin: 3em auto;
  padding: 0 2em;
  font-family: "Segoe UI", Tahoma, sans-serif;
  color: #333;
}

.rok-publikacji {
  background-color: #dce7de;
  border-radius: 10px;
  margin-bottom: 1.5em;
  padding: 1em 1.5em;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.rok-publikacji:hover {
  background-color: #dce7de;
}

.rok-publikacji h2 {
  margin: 0;
  font-size: 20px;
  font-weight: bold;
  color: #003366;
  text-align: center;
}

.lista-publikacji {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  margin-top: 1.5em;
}

.lista-publikacji.open {
  max-height: none; /* wystarczająco dużo dla wielu publikacji */
}

.publikacja {
  display: block;
  background-color: #fff;
  border-radius: 8px;
  padding: 1em;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: #000;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 1.2em;
}

.publikacja:hover {
  transform: scale(1.02);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
}

.link-do-bazy {
  display: block;
  background-color: #dce7de;
  border-radius: 10px;
  padding: 1em 1.5em;
  margin-bottom: 1.5em;
  transition: background-color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  color: #003366;
  text-align: center;
}

.link-do-bazy:hover {
  background-color: #dde5e1;
  transform: scale(1.02);
}

.link-do-bazy h2 {
  margin: 0;
  font-size: 20px;
  font-weight: bold;
  color: #003366;
}

.link-do-bazy .podtekst {
  font-size: 14px;
  font-weight: normal;
  display: block;
  margin-top: 0.4em;
  color: #555;
}

.strzalka {
  display: inline-block;
  margin-right: 0.5em;
  font-size: 1em;
  transition: transform 0.3s ease;
  transform-origin: center;
  color: #003366;
}

html, body {
  overflow-x: hidden;
}

@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  nav ul {
    justify-content: center;
  }
}
.header-inner {
  position: relative; /* ⬅️ To do istniejącej klasy .header-inner */
}
.menu-toggle {
  position: absolute;
  top: 1.5em;
  right: 1.5em;
  z-index: 1000;
}

.opis-aparatu-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 3em;
  align-items: flex-start;
  justify-content: center;
  max-width: 1200px;
  margin: 2em auto;
  padding: 0 2em;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

.foto-aparatu {
  flex: 0 0 360px;
  margin-left: -4em;
  margin-top: 2em;  /* ⬅️ przesuwa zdjęcie w dół */
}

.zdjecie-aparatu {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #dce7de;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.zdjecie-aparatu img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tekst-aparatu {
  flex: 1;
  min-width: 250px;
  padding-right: 1em;  /* zapewnia miejsce po prawej */
}

.tekst-aparatu h2 {
  font-size: 24px;
  color: #003366;
  margin-top: 0;
  margin-bottom: 1em;
}

.tekst-aparatu p {
  font-size: 17px;
  line-height: 1.6;
  text-align: justify;
  margin-bottom: 1.2em;
  color: #333;
}

#projekty {
  max-width: 1400px;
  margin: 3em auto;
  padding: 0 2em;
  font-family: "Segoe UI", Tahoma, sans-serif;
  color: #333;
}

.kafelek-projekt {
  display: block;
  background-color: #eef3f0; /* ten sam kolor co kafelek kierownika */
  border-radius: 10px;
  padding: 1.5em 2em;
  margin-bottom: 1.5em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: #003366;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kafelek-projekt:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  background-color: #dde5e1;
}

.kafelek-projekt h2 {
  margin: 0 0 0.5em 0;
  font-size: 20px;
  color: #003366;
}

.kafelek-projekt p {
  margin: 0;
  font-size: 16px;
  color: #333;
}

.language-switch {
  position: absolute;
  top: 1.2em;
  right: 2em;
  font-size: 0.95em;
}

.language-switch a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.2s ease;
  display: inline-block;
}

.language-switch a:hover {
  transform: scale(1.1);
  text-decoration: underline;
}