@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

:root {
  --bg: #1f2638;
  --card-bg: #2b334f;
  --text: #e3e8ff;
  --muted: #8c9bb3;
  --accent: #3fa795;
  --highlight: #f5a35c;
  --nav-bg: #1b233d;
  --radius: 0px;
  --transition: 0.3s ease;
  --max-width: 1200px;
}

/* RESET & BASE */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: clamp(0.95rem, 1vw, 1.1rem);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* CONTAINER */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem;
}

/* NAVIGATION */
.nav-wrapper {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--nav-bg);
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  padding: 0.5rem 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  z-index: 9999;
}

.brand a {
  color: orange;
  font-weight: 600;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  text-decoration: none;
  white-space: nowrap;
}

/* hamburger toggle */
.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.nav-label {
  display: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-label span,
.nav-label span::before,
.nav-label span::after {
  display: block;
  background: var(--text);
  height: 3px;
  width: 25px;
  border-radius: 2px;
  position: relative;
  transition: var(--transition);
}
.nav-label span::before,
.nav-label span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-label span::before { top: -8px; }
.nav-label span::after { top: 8px; }
.nav-toggle:checked + .nav-label span {
  background: transparent;
}
.nav-toggle:checked + .nav-label span::before {
  transform: rotate(45deg);
  top: 0;
}
.nav-toggle:checked + .nav-label span::after {
  transform: rotate(-45deg);
  top: 0;
}

/* nav list */
.nav-list {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: wrap;
}
.nav-list li a {
  font-size: clamp(0.8rem, 2vw, 1rem);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.nav-list li a:hover,
.nav-list li a.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--highlight);
  /* box-shadow: 0 0 8px var(--highlight); */
}

/* Mobile menu */
@media (max-width: 900px) {
  .nav-label {
    display: flex;
    align-items: center; 
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.4s ease;
    background-color: var(--nav-bg);
    padding: 0;
    margin-top: 0.5rem;
    border-radius: 0;
  }

  .nav-toggle:checked + .nav-label + .nav-list {
    max-height: 300px;
    padding: 1rem;
  }

  .nav-list li {
    margin: 0.4rem 0;
    width: 100%;
  }

  .nav-list li a {
    width: 100%;
    box-sizing: border-box;
  }

  .brand a {
    margin-left: 10px;
    font-size: clamp(1.2rem, 1vw, 1.6rem);
  }

  .nav-wrapper {
    padding: 0.5rem 0.75rem;
  }
}

/* HEADER */
header {
  padding-top: 60px; /* wysokość paska nawigacji, dostosuj jeśli trzeba */
  background-image: url("../img/bezglutenowa.jpg");
  background-size: cover;
  background-position: center;
  height: 250px;
  position: relative;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}
.header-text {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: rgb(187, 230, 189);
  text-align: center;
  gap: 0.5rem;
  padding: 0 1rem;
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
}
.header-text h1 {
  font-size: clamp(1.6rem, 4vw, 3.5rem);
  margin: 0;
  color: var(--highlight);
}
.header-text p {
  font-size: clamp(0.8rem, 2vw, 1.2rem);
  margin: 0;
}

/* TABELA */
/* Kontener tabeli z poziomym scrollowaniem na małych ekranach */
.unit-table-wrapper {
  overflow-x: auto; /* poziome przewijanie na małych ekranach */
  width: 100%;
  margin-bottom: 1.5rem;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  background: var(--card-bg);
}

/* Tabela z pionowymi liniami */
.unit-table {
  width: 100%;
  border-collapse: separate; /* dla border-radius */
  border-spacing: 0;
  min-width: 600px; /* wymuszamy szerokość by wymusić scroll */
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
  border-radius: var(--radius);
  overflow: hidden;
}

/* Nagłówki */
.unit-table th,
.unit-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  border-right: 1px solid rgba(255,255,255,0.1); /* pionowa linia */
  color: var(--text);
  white-space: wrap; /* żeby nie zawijało tekstu */
}



/* Nagłówek */




/* Efekt hover dla czytelności */


/* Na bardzo małe ekrany – usuwamy min-width, pozwalamy przewijać */
@media (max-width: 600px) {
  .unit-table {
    min-width: 0; /* elastyczna szerokość */
  }
}



/* STOPKA */
footer {
  background: var(--nav-bg);
  text-align: center;
  padding: 0.5rem 0.5rem;
  color: var(--text);
  font-size: clamp(0.75rem, 2vw, 1rem);
  margin-top: 2rem;
}
footer a.polityka {
  color: var(--text);
  text-decoration: underline;
}
footer a.polityka:hover {
  color: var(--accent);
}

/* TYPOGRAFIA – tekst jak w main.css */
h1, h2, h3, h4, h5 {
  
  font-weight: 700;
  line-height: 1.2;
  margin: 1.2rem 0 0.6rem;
}

h2 {
	color: var(--highlight);
  font-size: clamp(1.4rem, 4vw, 3.5rem);
  text-align: center;
  margin-left: 0.6rem;
  margin-right: 0.6rem;
}
h3 {
	color: var(--accent); 
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  padding-left: 1rem;
  font-style: italic;
}
h4 {
  font-size: clamp(1rem, 3vw, 1.4rem);
}

p {
  font-size: clamp(0.8rem, 1.5vw, 1.8rem);
  line-height: 1.7;
  text-indent: 1.2rem;
  margin: 0.5rem 0 1rem;
  color: var(--text);
}

/* Sekcje z tekstem */
.section-title {
  font-size: clamp(1.5rem, 5vw, 2.4rem);
  color: var(--highlight);
  text-align: center;
  margin: 1.5rem 0 1rem;
}

/* Listy */
ul {
  padding-left: 2rem;
  line-height: 1.7;
  font-size: clamp(0.7rem, 1.8vw, 1.1rem);
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Styl wstępów */
.intro,
.summary,
.podsumowanie-info,
.about-me-info {
  margin: 1rem 0 2rem;
  padding: 0 1vw;
}

.intro p:first-of-type {
  font-weight: 500;
}



/* BANER COOKIES */
#cookie-banner {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  color: #333;
  padding: 20px;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
  z-index: 1000;
  font-family: 'Montserrat', system-ui, sans-serif;
  flex-wrap: wrap;
  gap: 10px;
}
#cookie-banner a {
  color: #0066cc;
  text-decoration: underline;
}
#cookie-banner button {
  background-color: #0066cc;
  color: white;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  border-radius: 5px; 
}


/* .card-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 12px var(--highlight);
} */


/* --- RESPONSYWNA TABELA --- */
@media (max-width: 768px) {
  .unit-table-wrapper {
    overflow-x: visible; /* wyłącz wymuszone przewijanie */
  }

 
 





  

  .unit-table td::before {
    content: attr(data-label);
    font-weight: bold;
    color: var(--highlight);
    flex: 1;
    text-align: left;
    padding-right: 0.5rem;
  }

  .unit-table td span {
  flex: 2;
  text-align: left; /* lepiej czytelne na mobile */
  color: var(--text);
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere; 
}

.unit-table td span ul {
  margin: 0;
  padding-left: 1.2rem; /* trochę wcięcia */
  list-style: disc;
}

.unit-table td span li {
  margin-bottom: 0.25rem;
}

}


/* Tabela */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

th, td {
  padding: 10px;
  text-align: left;
  border: 1px solid var(--accent);
  font-size: clamp(0.7rem, 1.5vw, 1.2rem);
}

th {
  background: var(--card-bg);
  color: var(--text);
}

/* Stopka */
footer p {
  padding: 6px;
  text-align: center;
  background-color: var(--nav-bg);
  color: var(--text);
  
  font-size: clamp(1rem, 1vw, 3rem);
}

footer .polityka {
  text-decoration: underline;
  color: var(--text);
  transition: color 300ms;
}

footer .polityka:hover {
  color: var(--highlight);
}

/* BANER COOKIES */
#cookie-banner {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  color: #333;
  padding: 20px;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
  z-index: 1000;
  font-family: 'Montserrat', system-ui, sans-serif;
  flex-wrap: wrap;
  gap: 10px;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
}

#cookie-banner a {
  color: #0066cc;
  text-decoration: underline;
}

#cookie-banner button {
  background-color: #0066cc;
  color: white;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
}


.opis-diety-info { 
  margin-left: 1rem; 
}


ol {
  padding-left: 2rem;
  font-size: clamp(0.8rem, 1.5vw, 1rem);
}

.info{
font-size: clamp(0.7rem, 1.5vw, 2rem);
}