/* Stylizacja całej strony */
body {
  margin: 0;
  font-family: 'Lato', Arial, sans-serif;
  background: linear-gradient(to bottom, #e0f7fa, #e8fdf5, #fdfdf5);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  display: flex;
  font-weight: 400;
  line-height: 1.7;
  /* font-size: clamp(1rem, 0.8vw + 0.8rem, 1.1rem);  skaluje się płynnie */
  font-size: clamp(1rem, 0.8vw + 0.9rem, 1.15rem);
  color: #222;
}
html {
  overflow-y: scroll;
  scroll-behavior: smooth;
}

p, li {
  font-weight: 400;
  color: #222;
  font-size: clamp(1.05rem, 1vw + 0.8rem, 1.2rem);
  line-height: 1.75;
  text-align: justify;
}

/* === TYPOGRAFIA LATO – zoptymalizowana dla BRIONLINE === */
/* === Nagłówki === */
h1, h2, h3 {
  font-family: 'Lato', Arial, sans-serif;
  line-height: 1.2;
  color: #00695c;
  margin-top: 1em;
  margin-bottom: 0.5em;
}

h1 {
  font-weight: 900;
  font-size: clamp(1.8rem, 2vw + 1rem, 2.6rem);
  text-align: center;
}

h2 {
  font-weight: 700;
  font-size: clamp(1.4rem, 1.5vw + 0.8rem, 2rem);
  border-left: 4px solid #00838f;
  padding-left: 10px;
}

h3 {
  font-weight: 500;
  /* font-size: clamp(1.2rem, 1vw + 0.6rem, 1.6rem); */
  color: #00695c;
  margin-top: 5px;
  margin-bottom: 5px;
  /* border-left: 4px solid #00695c; */
  padding-left: 5px;
  letter-spacing: 0.3px;
}

.listanr h3 {

  border-left: 0px solid #00695c; 

}

/* === Tekst i listy === */

/* === Linki === */
a {
  color: #2fa37d;
  text-decoration: underline;
  transition: color 0.2s ease;
}

a:hover {
  color: #00695c;
}

/* === Małe napisy / źródła === */

small, .chart-source, .site-footer {
  font-size: 0.9em;
  color: #555;
  font-weight: 400;
}

/* end */


.wstep p {
  text-indent: 2em;
}

.wstep ul.listy{
  clear: both;
}

.wstep{ text-align: left; } /* tylko w sekcji wstępu */


table {
  border-collapse: collapse;
  margin: 20px auto;
  width: 90%;
  max-width: 700px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  border-radius: 6px;
  overflow: hidden;
}

table th {
  background: #00838f; /* turkus */
  color: #fff;
  text-align: justify;
  padding: 12px;
  font-weight: bold;
}

table td {
  padding: 10px 12px;
  text-align: justify;
  border-bottom: 1px solid #ddd;
  background: #fdfdf5; /* delikatny beż */
}

table tr:nth-child(even) td {
  background: #f8fffb; /* lekka mięta dla przejrzystości */
}

table tr:hover td {
  background: #e0f2f1; /* podświetlenie na hover */
}

/* Linki w menu */
nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

/* Aktywna strona */
nav ul li .active {
  color: #ffd180; /* ciepły akcent */
  font-weight: bold;
  text-decoration: underline;
  cursor: default;
}

/* Styl przy najechaniu */
nav ul li a:hover {
  text-decoration: none;
  color: #ffd180;
  text-shadow: 0 0 4px rgba(255, 209, 128, 0.4);
}

nav .menu-wrapper > ul > li {
  display: flex;
  align-items: center;
  position: relative;
}
nav .menu-wrapper > ul > li:not(:last-child)::after {
  content: "|";
  color: rgba(255, 255, 255, 0.4);
  margin: 0 3px;
  font-weight: 300;
}


.has-submenu .submenu { display: none; }
.has-submenu.open .submenu { display: block; }

.submenu-toggle {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

nav .submenu {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: #00838f;
  z-index: 2000;
  box-shadow: 0 10px 25px rgba(0,0,0,.15);
}
nav .has-submenu.open .submenu { display: block; }
nav .submenu li { display: block; }
nav .submenu a,
nav .submenu .active {
  display: block;
  padding: 8px 14px;
  white-space: nowrap;
}


/* trojkacik */
nav .submenu-toggle{
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

nav .submenu-toggle::after{
  content: "▾";
  margin-left: 10px;
  transition: transform 0.2s ease;
}

nav .has-submenu.open > .submenu-toggle::after{
  transform: rotate(180deg);
}



/* żeby przycisk w menu nie brał globalnego button { ... } */
nav .submenu-toggle{
  background:none;
  border:0;
  padding:0;
  margin:0;
  border-radius:0;
  color:#fff;
  font:inherit;
  font-weight:bold;
  font-size:19px;
  cursor:pointer;
}


/* Wynik BRI */
.result {
  margin-top: 20px;
  background: #e0f2f1; /* jasna mięta */
  border: 1px solid #b2dfdb;
  padding: 15px;
  border-radius: 8px;
  color: #00695c; /* ciemna zieleń morska */
  font-weight: bold;
}

.image-instruction-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 15px;
  margin-top: 20px;
  justify-content: space-evenly;
}

.waist-instruction {
  max-width: 450px;
  font-size: clamp(1.05rem, 1vw + 0.45rem, 1.2rem); /* większe minimum */
  line-height: 1.65;
  text-align: left;
  margin: 0 0 0 5px;
}

.waist-instruction ul {
  padding-left: 20px;
  margin: 10px 0 0 0;
}

.waist-instruction li {
  margin-bottom: 8px;
  text-align: left;
  /* font-size: clamp(1rem, 0.9vw + 0.4rem, 1.15rem); dopasowane do akapitów */
  line-height: 1.6;
}

.waist-instruction img {
  max-width: 170px;  
  width: 100%;       /* na mniejszych ekranach skaluje się */
  height: auto;      /* proporcje zawsze zachowane */
  display: block;
  margin: 0 auto 0px auto;
}

.card {
  background: #f8fffb;
  margin: 0 0px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  width: 100%;
  padding: 0px 35px;
  text-align: center;
}

.card h1 {
  color: #00695c; /* ciemna zieleń morska */
  font-size: 2em;
  margin-bottom: 20px;
}

.card label {
  display: block;
  text-align: left;
  margin: 5px 0 5px;
  font-weight: bold;
}

.card input {
  display: block;
  width: 150px;
  min-width: 120px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-sizing: border-box;
  text-align: left;
}

form {
  background: #f0fdf9;
  padding: 5px 10px 15px 10px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  max-width: 400px;
  margin: 20px auto;
}

form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #333;
}

form input,
form select {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 18px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  background: #f9f9f9;
  transition: all 0.3s ease;
}

form input:focus,
form select:focus {
  border-color: #2fa37d;              /* zielona ramka po zaznaczeniu */
  background: #ffffff;                /* białe pole po kliknięciu */
  outline: none;
  box-shadow: 0 0 6px rgba(47, 163, 125, 0.3);
}

form select {
  appearance: none;                   /* usuwa strzałkę systemową */
  background-image: url("data:image/svg+xml;utf8,<svg fill='%232fa37d' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 40px;                /* miejsce na ikonę */
}

button {
  /* width: 100%; */
  padding: 10px;
  background: #2fa37d;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
}

button strong {
  font-weight: 600;
}

button:hover {
  background: #279169;
}

input[type="number"] {
  font-size: 1.05rem; /* większe, lepiej widoczne cyfry */
  font-family: 'Lato', Arial, sans-serif; /* spójny krój z całą stroną */
  font-weight: 500;
  color: #222;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  text-align: center; /* cyfry wyśrodkowane – wygląda estetyczniej */
  height: 42px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="number"]:focus {
  border-color: #2fa37d;
  box-shadow: 0 0 5px rgba(47, 163, 125, 0.4);
  outline: none;
}

/* usuwa strzałki w inputach liczbowych */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}


.input-row {
  display: flex;
  justify-content: center;   /* wyśrodkowanie wszystkich pól */
  align-items: flex-start;
  gap: 10px 40px;                 /* odstęp między polami */
  margin-bottom: 10px;
  flex-wrap: wrap;           /* dla mobile */
}

.form-group {
  display: flex;
  flex-direction: column;
  align-items: center;       /* label + input idealnie w osi pionowej */
  text-align: left;
  width: auto;               /* usuwa rozciąganie */
}

.form-group label {
  font-weight: 600;
  margin-bottom: 6px;
  width: 100%;
  text-align: left;
}

.image-container {
  text-align: center;
  margin-top: 0px;
}

.image-container img {
  max-width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  height: auto;
}

.site-footer {
  text-align: center;
  padding: 5px 5px;
  font-size: 13px;
  margin-top: 0px;
  color: #555;
}

.site-footer p {
  font-size: 12px;
  text-align: center;
  line-height: normal;
}

#cookieb {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff9e6;
  color: #333;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-width: 600px;
  width: 90%;
  font-family: system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  z-index: 9999;
  display: none;
  max-height: 40vh;
  overflow: auto;
}
#cookieb a {
  color: #ff7043;
}
#cookieb .btn-group {
  margin-top: 15px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
#cookieb button {
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
#cookieb button.accept {
  background: #ff7043;
  color: white;
}
#cookieb button.decline {
  background: #ddd;
  color: #333;
}
.formula {
  text-align: center;
  margin: 20px 0;
}
.error-message {
  color: #d32f2f;
  font-size: 14px;
  margin-top: -8px;
  margin-bottom: 10px;
  display: none; /* <-- tu ukrywasz startowo */
}

.form-row {
  display: flex;
  gap: 15px;              /* odstęp między polami */
  margin-bottom: 15px;
}

.form-row .form-group {
  flex: 1;                /* każde pole zajmuje połowę */
}

.form-group label {
  display: block;
  margin-bottom: 6px;
}
.sources {
  /* background: #f8fffb;        delikatna mięta jak w .card */
  /* border: 1px solid #b2dfdb; */
  padding: 0px 0px 10px 0px;
  margin: 0px auto;
  border-radius: 8px;
  max-width: 900px;
  line-height: normal;
  font-size: 0.8em;

}
.sources ul {
  margin-bottom: 15px;
  margin: 0px auto;
  max-width: 900px;
}

.sources li {
  font-size: clamp(0.9rem, 0.8vw + 0.7rem, 1rem);
  line-height: 1.5;
}

.sources a {
  color: #2fa37d;
  text-decoration: underline;
}

.faq {
  max-width: 900px;
  margin: 40px auto;
  line-height: 1.6;
}

.faq-item {
  margin-bottom: 15px;
}

.faq-item h3 {
  color: #00838f;
  margin-bottom: 10px;
}

.faq-item p {
  margin: 0;
}
/* ===== Zbalansowana typografia FAQ ===== */
.faq h1 {
  text-align: center;
  color: #00695c;
  margin: 10px auto 10px;
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw + 0.5rem, 2.4rem);
  line-height: 1.2;
  max-width: 90%;
}

.faq h2 {
  color: #00838f;
  margin-top: 25px;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: clamp(1.3rem, 3vw + 0.3rem, 1.8rem);
  line-height: 1.3;
  text-align: left;
}

.faq h3 {
  color: #00695c;
  margin-top: 12px;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: clamp(1.1rem, 2.5vw + 0.2rem, 1.4rem);
  line-height: 1.35;
  text-align: left;
}

/* Ujednolicenie stylu dla sekcji i kart */
.card, .bmi-info, .faq {
  font-size: 18px;
  line-height: 1.7;
  color: #333;
}

/* Nagłówki sekcji */
.card h1, .faq h1 {
  font-size: 1.7em;
  color: #00695c;
  text-align: center;
  margin-top: 15px;
  margin-bottom: 15px;
  line-height: 1.15;
}

.card h2, .faq h2 {
  font-size: 1.3em;
  color: #00838f;
  margin-top: 25px;
  margin-bottom: 10px;
  border-left: 4px solid #00695c;
  padding-left: 10px;
}

/* Wyrównanie nagłówków wewnętrznych */
.card h2, 
.card h3, 
.faq h2, 
.faq h3 {
  text-align: left !important;
}


/* === MENU (wersja poprawiona) === */
nav {
  width: 100%;
  background: #00838f;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: relative;
  z-index: 100;
}

/* Kontener główny — hamburger + menu */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between; /* hamburger po lewej, menu po prawej */
  min-height: 46px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
  position: relative;
}

/* Wrapper dla listy */
.menu-wrapper {
  flex: 1;
  display: flex;
  justify-content: center; /* menu wyśrodkowane */
  width: 100%;
}

nav .menu-wrapper > ul {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
  gap: 8px;
}


nav ul li a,
nav ul li span {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 17px;
}

nav ul li .active {
  color: #ffd180;
  text-decoration: underline;
}

/* Hamburger — tylko na mobile */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.9em;
  color: white;
  cursor: pointer;
  line-height: 0.8;
  z-index: 1001;
}

/* === MOBILE === */

@media (max-width: 768px) {

  p, li {
    font-size: 1.15rem; /* lepsza czytelność na telefonach */
    line-height: 1.8;
  }
  small, .chart-source, .site-footer {
    font-size: 1rem;
  }

  .image-instruction-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .card {
    padding: 0px 10px !important;
    box-sizing: border-box; /* pewność że padding nie rozjedzie width */
  }

  .input-row {
    flex-direction: column;
    align-items: center;
    gap: 0px;
  }

  .card input {
    width: 80%;
    max-width: 300px;
  }

  .card button {
    width: 80%;
  }
nav ul li {
  margin: 0 12px;
}

nav ul li::after {
   content: none !important;
    }

body {
  padding-top: 46px;
  color: #111;
  font-size: 1.1rem; /* minimalna wielkość bazowa */
}
  nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
  }

  .nav-container {
    justify-content: flex-start;
    padding: 0 10px;
  }
  nav ul li a,
  nav ul li span {
    font-size: 19px;
  }
  .hamburger {
    display: block;
    position: relative;
    left: 0;
    top: 50%;
    /* transform: translateY(-50%); */
  }

nav .menu-wrapper > ul {
  display: none;
  flex-direction: column;
  background: rgba(0, 131, 143, 0.8);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  position: absolute;
  top: 100%;
  left: 0;
  text-align: center;
  padding: 10px 0;
  margin: 0;
  gap: 12px;
  border-radius: 0 0 12px 12px;
  transition: all 0.3s ease;
}

nav.active .menu-wrapper > ul {
  display: flex;
}

  nav ul li a {
    font-size: 19px;
    padding: 2px 0;
    color: #fff;
    text-decoration: none;
    display: block;
    transition: color 0.2s ease, transform 0.2s ease;
  }

  nav ul li a:hover {
    color: #ffe082; /* ciepły żółty akcent */
    transform: scale(1.05);
  }

nav.active .menu-wrapper > ul {
  display: flex;
}

.form-group label {
    text-align: center; /* To wyśrodkuje napis nad inputem */
    width: 100%;       /* Upewni się, że napis ma miejsce na środkowanie */
  }

/* Mobile – wykres pod listą */
  .bmi-section {
    flex-direction: column;
    align-items: center;
  }
/* === Widok mobilny wykresu === */
.bmi-image-block {
    float: none;
    width: 100%;
    margin: 15px 0;
  }

  #cookieb {
    padding: 12px;
    font-size: 14px;
    line-height: 1.4;
    bottom: 10px;
  }
  #cookieb .btn-group {
    margin-top: 10px;
    gap: 8px;
  }
  #cookieb button {
    padding: 8px 12px;
    font-size: 13px;
  }


  #cookieb p {
    font-size: 1.1rem; /* lepsza czytelność na telefonach */
    line-height: 1.5;
  }


.form-group input, 
  .form-group select {
    width: 220px !important; /* Stała szerokość dla wszystkich pól */
    max-width: 90%;          /* Bezpiecznik dla bardzo małych ekranów */
    box-sizing: border-box;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

.input-row, .form-row {
    flex-direction: column;
    align-items: center;
    gap: 0px;
  }

}

/* === DESKTOP === */
@media (min-width: 769px) {
  .hamburger {
    display: none;
  }

  nav .menu-wrapper > ul {
    display: flex !important;
    position: static;
    background: none;
  }
  nav .submenu-toggle{ font-size: 17px; }


/* MENU: przycisk "Kalkulatory" bez tła, hover = zmiana koloru tekstu */
nav .submenu-toggle{
  background: transparent !important;
}

nav .submenu-toggle:hover{
  background: transparent !important;
  color: #ffd180 !important;
  text-shadow: 0 0 4px rgba(255, 209, 128, 0.4);
}

/* żeby nie łapał focus-ramki / tła po kliknięciu */
nav .submenu-toggle:focus,
nav .submenu-toggle:active{
  outline: none;
  background: transparent !important;
}


}

/* === Blok z wykresem BMI === */
.bmi-image-block {
  text-align: center;
  transition: all 0.3s ease;
  margin: 5px 0;
}

.bmi-image-block img.bmi-chart {
  width: 100%;
  max-width: 260px; 
  height: auto;
  border-radius: 8px;
  border: 1px solid #ddd;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.bmi-image-block img.bmi-chart:hover {
  transform: scale(1.03);
}

.chart-source {
  font-size: 0.8rem;
  color: #666;
  text-align: center;
  margin-top: 5px;
}

.chart-source a {
  color: #2fa37d;
  text-decoration: underline;
}

/* === Po kliknięciu — pełny ekran === */

.bmi-chart.fullscreen {
  position: fixed !important;
  inset: 0; /* zajmuje cały ekran, zamiast kombinacji top/left */
  margin: auto; /* wyśrodkowanie */
  max-width: 90vw !important;
  max-height: 90vh !important;
  width: auto !important;
  height: auto !important;
  z-index: 10000;
  background: #fff;
  box-shadow: 0 0 25px rgba(0,0,0,0.5);
  border-radius: 10px;
  cursor: zoom-out;
  float: none !important;
  transform: none !important; /* usuwa przesunięcie */
  transition: all 0.25s ease;
}

/* === Tło przy powiększeniu === */
body.show-overlay::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
}

/* obrazek bmi */
.bmi-section {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.bmi-section ul {
  flex: 1 1 auto;
  margin: 0;
}

.bmi-section .bmi-image-block {
  flex: 1 1 35%;
  text-align: center;
}


/* Responsywne tabele */
.kalorie-tabela {
  border-collapse: collapse;
  width: 100%;
  max-width: 100%;
  margin: 0 auto 30px;
  font-size: 0.95rem;
  border: 1px solid #ddd;
  /* table-layout: fixed; */
}

.kalorie-tabela th {
  background-color: #00838f;
  color: #fff;
  padding: 8px 10px;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid #fff;
}

.kalorie-tabela th span {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  opacity: 0.9;
  margin-top: 2px;
}

.error-404-img {
  max-width: 400px; 
  width: 100%;
  height: auto;
}

/* Owijanie tabeli w poziomy scroll na urządzeniach mobilnych */
@media (max-width: 768px) {
  .kalorie-tabela th {
    font-size: 0.9rem;
    padding: 6px 4px;
  }

  .kalorie-tabela th span {
    font-size: 0.7rem;
  }
  h2 {
    scroll-margin-top: 80px;
  }

  .obrazek-lewo {
    float: left !important;        /* usuwa wypływanie */
    display: block !important;     /* wymusza blokowy układ */
    margin: 15px auto 0 auto !important; /* centrowanie */
    padding: 0 10px 0 0;
    max-width: 35%;
    height: auto;
  }
  .error-404-img {
    max-width: 200px;
  }
}

/* spis tresci */
.spis-tresci {
  margin: 1.5rem 0 2.5rem;
  text-align: left;
}

.spis-tresci h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #005f56;
  margin-bottom: 0.5rem;
  border-left: 3px solid #00897b;
  padding-left: 8px;
}

.spis-tresci ol {
  list-style: decimal;
  padding-left: 1.3rem;
  margin: 0;
}

.spis-tresci li {
  margin: 0.25rem 0;
  line-height: 1.5;
}

.spis-tresci a {
  color: #00695c;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.spis-tresci a:hover {
  color: #004d40;
  text-decoration: underline;
}

.akapit-z-obrazkiem {
  text-align: justify;
}

/* Obrazek po lewej na desktopie */
.obrazek-lewo {
  float: left;
  width: 200px;
  height: auto;
  margin: 10px 15px 10px 0;
  border-radius: 8px;
  display: block;
}

.faq-jojo {
  max-width: 850px;
text-align:justify;
}

/* === BLOG – pełna optymalizacja listy artykułów === */

.blog-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
    border-radius: 10px;
    background: #ffffff;
    margin-bottom: 25px;
    border: 1px solid #e1e1e1;
    transition: box-shadow 0.25s ease;
}

.blog-item:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.blog-thumb-link {
    display: block;
    margin: 0 auto; /* centrowanie miniatury */
}

.blog-thumb {
    width: 180px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    display: block;
    margin: 0 auto; /* pewne centrowanie */
    transition: transform 0.25s ease;
}

.blog-thumb-link:hover .blog-thumb {
    transform: scale(1.03);
}

.blog-content {
    flex: 1;
}

.blog-content h3 {
    margin: 0 0 10px;
    font-size: 1.4rem;
    color: #00695c;
    line-height: 1.25;
}

.blog-content h3 a {
    text-decoration: none;
    color: inherit;
}

.blog-content h3 a:hover {
    text-decoration: underline;
}

.blog-content p {
    margin: 0;
    color: #333;
    line-height: 1.6;
    text-align: left;
}

/* Lista linków polecanych wpisów */
.blog-lista li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* === MOBILE === */
@media (max-width: 600px) {
    .blog-item {
        flex-direction: column;
        text-align: center;
    }

    .blog-thumb {
        width: 100%;
        max-width: 300px;
        margin: 0 auto 10px auto;
    }

    .blog-content p {
        text-align: justify;
    }
}




/* --- RESPONSYWNA TABELA IG --- */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* płynne przewijanie na iOS */
  border: 1px solid #dee2e6;
  border-radius: 6px;
  background-color: #fff;
  margin-top: 1rem;
}

/* Styl samej tabeli */
.tabela-kalorii {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 600px; /* wymusza poziome przewijanie na małych ekranach */
}

.tabela-kalorii th,
.tabela-kalorii td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e9ecef;
  white-space: nowrap; /* zapobiega łamaniu w środku wyrazów */
}

.tabela-kalorii th {
  background-color: #f8f9fa;
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 2;
}

/* Kolory wierszy co drugi */
.tabela-kalorii tr:nth-child(even) {
  background-color: #fdfdfd;
}

/* ZIELONE TŁO W NAGŁÓWKU TABELI */
.tabela-kalorii thead th {
  background-color: #2e7d32; /* ciemna, elegancka zieleń */
  color: #ffffff; /* biały tekst dla kontrastu */
}

/* Opcjonalnie: zaokrąglenie górnych rogów */
.tabela-kalorii thead th:first-child {
  border-top-left-radius: 6px;
}
.tabela-kalorii thead th:last-child {
  border-top-right-radius: 6px;
}

/* Cień pod nagłówkiem dla lepszej separacji */
.tabela-kalorii thead {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* --- MOBILE UX poprawki --- */
@media (max-width: 768px) {
  .tabela-kalorii th, .tabela-kalorii td {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
  }
  .table-scroll {
    border: 1px solid #e1e1e1;
    box-shadow: inset 0 0 6px rgba(0,0,0,0.05);
  }
}

/* --- Dodatkowy efekt: gradient przewijania --- */
.table-scroll::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 2rem;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(to left, rgba(255,255,255,0.9), transparent);
}


.eeat-mini{
  margin-top: 20px;
  padding: 12px 14px;
  background: #f7f7f7;
  border-radius: 8px;
  font-size: 11px;
  line-height:0.6;
}


/* graficzna reprezentacja wyniku bmi */

.bmi-gauge {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  background: #e0f2f1;
  font-size: 0.95rem;
}

.bmi-gauge h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

#bmi-gauge-svg {
  width: 100%;
  max-width: 400px;   /* było np. 260px – teraz większe */
  display: block;
  margin: 0 auto;
}

/* segmenty pierścienia */
.bmi-gauge-wedge {
  stroke: #ffffff;
  stroke-width: 1;
}

/* kolory jak na pasku */
.bmi-wedge-starvation {  fill: #e3f2fd; } /* Wygłodz. */
.bmi-wedge-emaciation { fill: #d0e3ff; } /* Wychudz. */
.bmi-wedge-under      { fill: #c8e6ff; } /* Niedow.  */
.bmi-wedge-normal     { fill: #c8e6c9; } /* Prawidł. */
.bmi-wedge-over       { fill: #fff9c4; } /* Nadwaga */
.bmi-wedge-obese1     { fill: #ffe0b2; } /* Otył. I */
.bmi-wedge-obese2     { fill: #ffccbc; } /* Otył. II */
.bmi-wedge-obese3     { fill: #ffab91; } /* Otył. III */

/* wskazówka */
.bmi-gauge-pointer {
  stroke: #ff7043;
  stroke-width: 3;
  stroke-linecap: round;
}

/* środek */
.bmi-gauge-center {
  fill: #333;
}

/* etykiety na pierścieniu */
.bmi-gauge-label {
  font-size: 8px;           /* trochę większe */
  text-anchor: middle;
  dominant-baseline: middle;
  fill: #333;
}

/* tekst pod spodem */
.bmi-gauge-value {
  margin: 8px 0 4px;
  font-weight: 600;
}

.bmi-gauge-desc {
  margin: 0;
  font-size: 0.85rem;
  color: #555;
}
.bmi-gauge p {
  text-indent:0;
}




.result p {
font-size:clamp(1.1rem, 1vw + 0.8rem, 1.1rem);
 text-indent: 0;
}

.bri-scale {
  margin-top: 16px;
}

.bri-scale-bar {
  display: flex;
  border-radius: 999px;
  overflow: hidden;
  background: #f5f5f5;
  position: relative; /* może być, ale nie musi */
}

/* każdy segment jest „własnym światem” dla markera */
.bri-segment {
  position: relative;              /* KLUCZOWE */
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 4px;
  font-size: 0.85rem;
  box-sizing: border-box;
}

/* sam marker */
.bri-marker {
  position: absolute;
  top: 0;          /* zaczyna od góry segmentu */
  height: 100%;    /* na całą wysokość paska */
  width: 2px;
  background: #333;
  transform: translateX(-50%);
}




/* kolory segmentów */
.bri-seg-low {
  background:#e3f2fd;  /* bardzo niski poziom tłuszczu */
}
.bri-seg-moderate {
  background:#c8e6c9;  /* umiarkowany */
}
.bri-seg-elevated {
  background:#fff9c4;  /* podwyższony */
}
.bri-seg-high {
  background:#ffccbc;  /* wysoki / otyłość brzuszna */
}


/* opis pod paskiem */
.bri-scale-desc {
  color:#555;
  font-size: 0.9rem;
}

/* lekkie dostosowanie na mobile */
@media (max-width: 600px) {
  .bri-scale-bar {
    height: 32px;
  }
  .bri-segment {
    font-size: 0.7rem;
  }
}

@media (max-width: 768px){

  /* KLUCZ: na mobile top-level LI nie może być flexem,
     bo wtedy submenu układa się obok przycisku */
  nav .menu-wrapper > ul > li{
    display: block !important;
  }

  /* a konkretnie dla pozycji z submenu: kolumna */
  nav .menu-wrapper > ul > li.has-submenu{
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    position: static !important;
  }

  /* przycisk "Kalkulatory" na całą szerokość, tekst po lewej */
  nav .submenu-toggle{
    width: 100% !important;
    text-align: left !important;
    justify-content: space-between; /* jeśli masz wariant strzałki po prawej */
  }

  /* submenu ma być normalnym elementem pod spodem, bez pływania */
  nav .menu-wrapper > ul > li.has-submenu > ul.submenu{
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 6px 0 0 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    display: none;
  }

  nav .menu-wrapper > ul > li.has-submenu.open > ul.submenu{
    display: block;
  }

  /* linki w submenu: wcięcie i bez łamania "Kalkulator BMI" */
  nav .menu-wrapper > ul > li.has-submenu > ul.submenu a,
  nav .menu-wrapper > ul > li.has-submenu > ul.submenu .active{
    display: block;
    padding: 6px 0 6px 18px;
    text-align: left;
    white-space: nowrap;
  }
}

/* ================================
   DISCLAIMER / UWAGA — FINAL
   (pasuje do Twojego HTML z .uwaga__meta)
   ================================ */

.uwaga{
  max-width: 850px;
  margin: 18px auto 12px;
  padding: 14px 16px;
  box-sizing: border-box;

  background: rgba(0, 131, 143, 0.06);
  border: 1px solid rgba(0, 131, 143, 0.18);
  border-left: 4px solid #00838f;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);

  /* reset po .card oraz po globalnym justify */
  text-align: left !important;
}

.uwaga, .uwaga *{
  text-align: left !important;
  text-justify: auto;
  word-spacing: normal;
  letter-spacing: normal;
}

/* META (ul/li) — usuń punktory i wyczyść wcięcia */
.uwaga__meta{
  list-style: none !important;
  margin: 0 0 10px 0 !important;
  padding: 0 !important;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
}

.uwaga__meta > li{
  margin: 0 !important;
  padding: 0 !important;
  display: grid;
  gap: 4px;
}

/* reszta wierszy */
.uwaga__rows{
  display: grid;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(0, 131, 143, 0.22);
}

.uwaga__row{
  display: grid;
  gap: 4px;
  margin: 0;
}

/* etykiety i wartości */
.uwaga__label{
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #00695c;
  opacity: 0.9;
  font-weight: 700;
}

.uwaga__value{
  font-size: 0.95rem;
  line-height: 1.5;
  color: #444;
}

/* linki */
.uwaga a{
  color: #2fa37d;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}
.uwaga a:hover{
  color: #00695c;
}

/* mobile */
@media (max-width: 720px){
  .uwaga{
    padding: 12px 12px;
  }
  .uwaga__meta{
    grid-template-columns: 1fr;
  }
  .uwaga__value{
    font-size: 1rem;
    line-height: 1.55;
  }
}

/* ===== WHR – graficzna interpretacja (spójna z BMI) ===== */

.whr-gauge {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  background: #e0f2f1;  /* identycznie jak BMI */
  font-size: 0.95rem;
}

.whr-gauge h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

#whr-gauge-svg {
  width: 100%;
  max-width: 400px;
  display: block;
  margin: 0 auto;
}

/* segmenty pierścienia */
.whr-gauge-wedge {
  stroke: #ffffff;
  stroke-width: 1;
}

/* kolory 3 stref */
.whr-wedge-low  { fill: #c8e6c9; }  /* zielony jak „normal” */
.whr-wedge-mid  { fill: #fff9c4; }  /* żółty jak „over” */
.whr-wedge-high { fill: #ffccbc; }  /* pomarańcz jak „obese2” */

/* wskazówka – taka sama jak BMI */
.whr-gauge-pointer {
  stroke: #ff7043;
  stroke-width: 3;
  stroke-linecap: round;
}

/* środek */
.whr-gauge-center {
  fill: #333;
}

/* etykiety */
.whr-gauge-label {
  font-size: 8px;
  text-anchor: middle;
  dominant-baseline: middle;
  fill: #333;
}

/* tekst pod spodem */
.whr-gauge-value {
  margin: 8px 0 4px;
  font-weight: 600;
}

.whr-gauge-desc {
  margin: 0;
  font-size: 0.85rem;
  color: #555;
}

/* reset wcięć jak w BMI */
.whr-gauge p {
  text-indent: 0;
}

/* WHR – tytuł skali jako h2 (żeby validator był OK), ale wygląd jak wcześniej */
.whr-gauge-title{
  border-left: none !important;
  padding-left: 0 !important;
  margin: 0 0 8px !important;
  color: #00695c;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.2;
}




/* MOBILE – wykres po zdaniu, nie obok */
@media (max-width: 768px){
  img.wykres-operacja{
    float: none !important;       /* kluczowe – usuwa miniaturkę obok */
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 15px auto 20px auto;  /* odstęp od tekstu */
  }
}


/* Desktop: wykres po lewej, podpis pod nim */
@media (min-width: 769px){


  .wykres-figure{
    float: left;
    width: min(420px, 45%);   /* <-- większy wykres, ale nie zabierze >45% */
    margin: 10px 20px 10px 0;
    text-align: center;
  }

  .wykres-figure img{
    width: 100%;
    height: auto;
    display: block;
  }

  .wykres-figure .chart-source{
    margin-top: 6px;
  }
}

form button {
  display: block;
  margin: 15px auto;
}
/* FAQ */
.faq-item {
    border: 1px solid #d9dddd;
    border-radius: 14px;
    margin-bottom: 16px;
    background: #f5f9ff;
    overflow: hidden;
}

.faq-item summary {
    cursor: pointer;
    padding: 22px 56px 22px 24px;
    font-weight: 700;
    font-size: 1.1rem;
    list-style: none;
    position: relative;
    text-align: left;
    display: block;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    font-weight: 700;
    color: #20b15a;
    line-height: 1;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-answer {
    padding: 0 24px 20px 24px;
    text-align: left;
}

.faq-answer p {
    margin: 0;
    text-align: left;
}

.faq-item[open] {
    background: #eafaf1;
    border-color: #bfe8cf;
}

.faq-item[open] summary {
    background: #eafaf1;
}