/* === RESET & PODSTAWY === */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  width: 100%;
  min-width: 320px;
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
  padding: 10px;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: #FFFde7;
}

strong, .title {
  font-weight: bold;
}

.title {
  font-size: 28px;
}

p, h1, h2 {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  margin: 0.9rem 0 0;
}

h1 {
  font-weight: 700;
  color: green;
  font-size: 1.2rem;
}

h2 {
  font-weight: 600;
  color: green;
  font-size: 1.1rem;
  margin-left: 1em;
  margin-top: 0.08em;
}

hr {
  overflow: visible;
  margin: 0.05em 0;
  border: none;
  border-top: medium double #333;
  text-align: center;
  color: #333;
}

hr:after {
  content: " ";
  position: relative;
  top: -0.7em;
  font-size: 1.5em;
  background: white;
}

.header {
  width: 100%;
  min-height: 150px;
  background-image: url(bg19.webp);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  margin-bottom: 5px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

@media (min-width: 600px) {
  .header {
    min-height: 150px;
    background-image: url(bg19.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    -webkit-order: 21;
    order: 1;
    margin-bottom: 5px;
    border-radius: 10px;
    overflow: hidden;
  }
}

@media (min-width: 800px) {
  .header {
    background-image: url(bg19.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    min-height: 250px;
    -webkit-order: 21;
    order: 1;
    margin-bottom: 5px;
    border-radius: 10px;
    overflow: hidden;
  }
}
.header-text {
  position: absolute;
  bottom: 20px;
  left: 20px;
  line-height: 1.5;
}

.header-text .line1 {
   /*font-family: 'Playfair Display', serif;*/
  font-family: 'Great Vibes', cursive;
  font-size: 1.9rem;
   /*font-weight: 700;*/
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.header-text .line2 {
  font-family: 'Great Vibes', cursive;
  font-size: 2.2rem;
  color: white;
  /*color: #ffd700;  złoty akcent */
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

@media (min-width: 800px) {
  .header-text .line1 {
    font-size: 2.4rem;
  }
  .header-text .line2 {
    font-size: 3.2rem;
  }
}
@media (max-width: 599px) {
  .header {
    min-height: 120px; /* mniejszy header */
    border-radius: 0; /* na małych ekranach łatwiej wpasować bez obcięcia rogów */
  }

  .header-text {
    bottom: 10px;
    left: 10px;
  }

  .header-text .line1 {
    font-size: 1.4rem;
  }

  .header-text .line2 {
    font-size: 1.7rem;
  }
}
@media (max-width: 400px) {
  .header-text {
    left: 10px;
    right: 10px; /* pozwoli dopasować szerokoć */
    bottom: 15px;
  }

  .header-text .line1 {
    font-size: 1.4rem;
    word-break: break-word;
  }

  .header-text .line2 {
    font-size: 1.6rem;
    word-break: break-word;
  }
}
/* === KONTENER I UKŁAD STRONY === */
.container {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  max-width: 1100px;
  margin: 0 auto;
  gap: 10px;
}

.content {
  flex: 1 1 0;
  max-width: 900px;
  margin: 0 auto;
  text-align: justify;
  width: 100%;
}

.content p {
  font-size: 16px;
  line-height: 1.5;
  margin: 0 5px 10px 0;
  padding: 5px;
}

.content h2 {
  margin-top: 10px;
}

.content ul, .content ol {
  margin: 15px 5px 10px 5px;
  padding: 10px 15px;
  line-height: 1.4rem;
}

.content ul {
  list-style-type: disc;
}

.content ol {
  list-style-type: decimal;
}

.content li a {
  display: inline;
  padding: 0 14px;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
}

.content a {
  color: #006633;              /* ciemna zieleń - stan normalny */
  text-decoration: underline;  /* linki podkrelone */
}

.content a:hover {
  color: #003366;              /* granat - kontrast przy hover */
  text-decoration: none;       /* bez podkrelenia przy hover */
}

.content a:focus {
  outline: 2px solid #009688;  /* turkus - ramka dla dostępnoci */
}

.content a:visited {
  color: #00331a !important;
}
.content a strong {
  color: green;
  text-decoration: none;
}

.content a strong:hover {
  color: red;
  text-decoration: underline;
}
/* === SIDEBAR === */
.sidebar-spis {
  width: 320px;
  background: #fafbfc;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 16px 12px;
  box-shadow: 0 2px 8px #eee;
  position: sticky;
  top: 32px;
  max-height: 80vh;
  overflow-y: auto;
  font-size: 1em;
  margin-right: 10px  !important;
}

.sidebar-spis h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.1em;
  color: #2a3b5b;
}

.sidebar-spis ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 14px;
}

.sidebar-spis li {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.sidebar-spis li .ikona {
  margin-right: 8px;
  font-size: 1.1em;
  vertical-align: middle;
}

.sidebar-spis a {
  color: #2351a2;
  text-decoration: none;
}

.sidebar-spis a:hover {
  text-decoration: underline;
  color: #18325a;
}

/* === SPIS TRECI GŁÓWNY === */
.spis-tresci-ramka {
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  background: #fafbfc;
  padding: 24px 20px;
  margin-bottom: 32px;
  max-width: 700px;
  box-shadow: 0 2px 8px #eee;
 /* margin: 0 auto;*/
   margin-right: 6px; /* lub mniej, np. 5px */
  transform: translateX(-5px);
}

.spis-tresci-ramka h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.2em;
  color: #2a3b5b;
}

.spis-tresci-ramka ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 16px;
}

.spis-tresci-ramka li {
  margin-bottom: 10px;
  font-size: 1.05em;
  display: flex;
  align-items: center;
}

.spis-tresci-ramka li .ikona {
  margin-right: 10px;
  font-size: 1.25em;
  vertical-align: middle;
}

.spis-tresci-ramka a {
  color: #2351a2;
  text-decoration: none;
  transition: color 0.2s;
}

.spis-tresci-ramka a:hover {
  text-decoration: underline;
  color: #18325a;
}

/* === LISTY SPECJALNE === */
.custom-list {
  list-style: none !important;
  padding-left: 0;
}

.custom-list li {
  position: relative;
  padding-left: 25px;
}

.custom-list {
  list-style: none;
  padding-left: 0;
}
.custom-list li {
  position: relative;
  padding-left: 2em;
  margin-bottom: 0.7em;
}
.custom-list li::before {
  content: "Ď";
  position: absolute;
  left: 0;
  color: #3a3a3a;
  font-size: 1.2em;
  font-weight: bold;
}

/* === OZNACZENIA === */
.tip {
  background: #eaf6ff;
  border-left: 4px solid #1d4e89;
  padding: 1em 1.2em;
  margin: 1.5em 0;
  border-radius: 6px;
  font-style: italic;
  color: #17406a;
}

.case {
  background: #f1f1f1;
  border-left: 4px solid #bbb;
  padding: 1em 1.2em;
  margin: 1em 0;
  border-radius: 6px;
  color: #444;
}

/* === NAWIGACJA === */
.nav-container {
  width: 100%;
}

.navigation {
  width: 100%;
  list-style: none;
  background: #558b2f;
  display: flex;
  flex-wrap: wrap;
  border-radius: 5px;
  gap: 10px;
  padding: 5px;
  justify-content: space-around;
}

.navigation li {
  flex-grow: 1;
  text-align: center;
  padding: 0; /* lub np. padding: 4px 0; */
  border-bottom: 1px solid #ccc;
  font-size: 0.9em;
}


.navigation .current-page-ancestor {
  background: #666;
}
.navigation a[href*="blog.html"] {
  color: red !important;
  font-weight: bold;
}
/* efekt hover tylko dla bloga */
.navigation a[href*="blog"]:hover {
  background-color: #fff;
  color: red !important;
  border-radius: 5px;
}
.navigation a {
  font-size: 1.1em;
  color: #fff;
  text-decoration: none;
  display: block;
  padding: 0.5em 0.8em; /* mniejszy padding pionowy i poziomy */
  font-family: inherit;
}

.navigation a:hover {
  /*background-color: #45a049;*/
    background-color: #7fa877; /* ciemniejsza szałwia */
  color: #1a1a1a;
  transition: background-color 0.3s ease;
}

/* === OBRAZY === */
img {
  margin: 0 15px 10px 0;
  border: 2px solid green;
  border-radius: 4px;
  background: silver;
  box-shadow: 1px 1px 3px silver;
  padding: 4px;
  max-width: 100%;
  height: auto;
  /* display: block;  <-- USUŃ TĘ LINIĘ */
}
.float-right {
  float: right;
  margin-left: 15px;
  margin-bottom: 10px;
}



.no-style {
  margin: 0;
  border: none;
  box-shadow: none;
  background: none;
  padding: 0;
}

/* === PRZYCISKI === */
.copy-button {
  padding: 10px 20px;
  background-color: blue;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

.copy-button:hover {
  background-color: #f93262;
}

.success-message {
  color: green;
  margin-top: 10px;
  display: none;
}

/* === PRZYCISK POWRÓT DO GÓRY === */
#goTop {
  position: fixed;
  bottom: 50px;
  right: 25px;
  padding: 10px 15px;
  font-size: 16px;
  background-color: #1E90FF;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  z-index: 9999999;
  display: none;
}

#goTop:hover {
  background-color: #28a745;
}
     .btn-primary:hover {
  background: #45a049;
}
.btn-secondary:hover {
  background: #4caf50;
  color: #fff;
}
.secondary:hover {
  background: #4caf50;
  color: #fff;
}
.btn {
  display:inline-block;
  padding:12px 28px;
  border-radius:5px;
  font-weight:bold;
  text-decoration:none;
  transition:0.3s;
}
.btn-primary {
  background:#4caf50;
  color:#fff;
}
.btn-primary:hover {
  background:#45a049;
}
.btn-secondary {
  background:#f5f5f5;
  color:#4caf50;
  border:1px solid #4caf50;
}
.btn-secondary:hover {
  background:#4caf50;
  color:#fff;
}
@media (max-width: 600px) {
  .cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
}






/* === STOPKA === */
.footer {
  background: #FFFde7;
  padding: 32px 0 10px;
  border-top: 1px solid #ddd;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.05);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  gap: 40px;
}

.footer-col {
  flex: 1 1 250px;
  min-width: 220px;
  margin-bottom: 16px;
}

.footer-col h4 {
  font-size: 18px;
  color: #007b8a;
  margin-bottom: 12px;
  border-bottom: 2px solid #b2e0e9;
  padding-bottom: 6px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #007b8a;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #005f67;
  text-decoration: underline;
}

.footer-col p,
.footer-col a {
  font-size: 15px;
  color: #444;
}

/* --- Nowy wyglšd RODO wewnštrz stopki --- */
.footer-rodo {
  font-size: 13px;
  color: #555;
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px solid #ddd;
  line-height: 1.6;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.footer-rodo .rodo-icon {
  font-size: 14px;
  color: #007b8a;
  margin-right: 6px;
}

.footer-copyright {
  text-align: center;
  color: #888;
  margin-top: 16px;
  font-size: 13px;
  padding-top: 10px;
  border-top: 1px solid #ddd;
}

/* Responsywnoć */
.footer-copyright {
  text-align: center;
  color: #888;
  margin-top: 16px;
  font-size: 13px;
  padding-top: 10px;
  border-top: 1px solid #ddd;
}

/* Responsywnoć */
@media (max-width: 768px) {
  .footer-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px; /* mniejszy odstęp pionowy */
  }

  .footer-col h4 {
    border-bottom: none;
  }

  .footer-rodo {
    flex-direction: column;
    text-align: center;
    gap: 4px;
  }
}

/* === KAFELKI === */
.kafelki-porady {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
  padding: 12px 0;
}

.kafelek {
  background: #f4f4f4;
  border-radius: 8px;
  box-shadow: 0 1px 4px #0001;
  text-align: center;
  padding: 14px 6px;
  font-size: 0.97em;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.kafelek:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 4px 12px #0002;
  background-color: #fff;
}

/* Nagłówki w kafelkach */
.kafelek h2 {
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0.4em 0 0.2em 0;
  color: #222;
}

/* Link w nagłówku kafelka  podkrelenie tylko na hover/focus */
.kafelek h2 a,
.kafelek h2 a:visited {
  color: #d32f2f !important;
  background: transparent !important;
  text-decoration: none !important;
  transition: color 0.2s, text-decoration 0.2s;
}

.kafelek h2 a:hover,
.kafelek h2 a:focus {
  color: #b71c1c !important;
  text-decoration: underline !important;
}

/* 2 kolumny na tabletach */
@media (max-width: 900px) {
  .kafelki-porady {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 1 kolumna na telefonie */
@media (max-width: 600px) {
  .kafelki-porady {
    grid-template-columns: 1fr;
  }
}

.faq details{margin:10px 0;padding:12px;border:1px solid #ddd;border-radius:8px;
background:#fafafa;transition:all .3s ease}
.faq summary{cursor:pointer;font-weight:600;list-style:none;outline:none}.faq summary::-webkit-details-marker{display:none}.faq summary::after{content:"+";float:right;font-size:18px;transition:transform .3s ease}.faq details[open] summary::after{content:"-"}.faq p{margin-top:8px;line-height:1.6}@media(max-width:600px){.faq details{padding:14px;font-size:16px}.faq summary::after{font-size:20px}}


/* === MEDIA QUERIES === */
@media (max-width: 900px) {
  .container, .footer-row {
    flex-direction: column;
    gap: 0;
  }

  .content, .sidebar-spis, .footer-col {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .sidebar-spis {
    box-shadow: none;
    border-radius: 0;
    position: static;
    top: unset;
    max-height: unset;
    margin-top: 20px;
  }

  .kafelki-porady {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .navigation {
    flex-direction: column;
  }

  .kafelki-porady {
    grid-template-columns: 1fr;
  }

  #goTop {
    display: none;
  }
}

@media (max-width: 480px) {
  .navigation li {
    font-size: 0.9em;
  }
}

@media (min-width: 901px) {
    .sidebar-spis {
        margin-right: 16px;
    }
}
/* ===== NAV HOTFIX (wklej NA SAM KONIEC pliku) ===== */

/* TŁO PASKA MENU */
.nav-container,
.navigation,
.main-navigation,
.main-navigation .menu,
.main-navigation ul.menu,
.elementor-nav-menu--main,
.elementor-nav-menu--dropdown {
  background-color: #1b5e20 !important;
  border-radius: 5px;
}

/* LINKI W MENU */
.navigation a,
.menu > li > a,
.main-navigation .menu > li > a,
.elementor-nav-menu--main .elementor-item,
.elementor-nav-menu--dropdown .elementor-item {
  display: block !important;
  color: #ffffff !important;
  padding: 0.7em 1em !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  border-radius: 3px !important;
  font-size: 1.05em;
}

/* HOVER/TAP W MENU  priorytet nad globalnym a:hover */
.navigation a:hover,
.menu > li > a:hover,
.main-navigation .menu > li > a:hover,
.elementor-nav-menu--main .elementor-item:hover,
.elementor-nav-menu--dropdown .elementor-item:hover,
.elementor-nav-menu--main .elementor-item:focus,
.elementor-nav-menu--dropdown .elementor-item:focus {
  background-color: #004d40 !important;
  color: #ffffff !important;
  transform: scale(1.03);
}

/* AKTYWNY ELEMENT */
.navigation .current_page_item > a,
.navigation .current-menu-item > a,
.main-navigation .current-menu-item > a,
.elementor-nav-menu--main .elementor-item.elementor-item-active,
.elementor-nav-menu--dropdown .elementor-item.elementor-item-active {
  background-color: #2e7d32 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}

/* PODZIAŁ MIĘDZY POZYCJAMI (desktop) */
.menu > li,
.navigation > li,
.main-navigation .menu > li {
  border-right: 1px solid rgba(255,255,255,0.3) !important;
}
.menu > li:last-child,
.navigation > li:last-child,
.main-navigation .menu > li:last-child {
  border-right: none !important;
}

/* MOBILE  układ pionowy i kreski poziome */
@media (max-width: 600px) {
  .navigation,
  .main-navigation .menu,
  .elementor-nav-menu--main {
    flex-direction: column !important;
  }
  .menu > li,
  .navigation > li,
  .main-navigation .menu > li {
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.3) !important;
  }
  .menu > li:last-child,
  .navigation > li:last-child,
  .main-navigation .menu > li:last-child {
    border-bottom: none !important;
  }
}