/* ==============================
   RESET + BAZA
============================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body, h1, h2, h3, p, ul {
  margin: 0;
  padding: 0;
}

/* ==============================
   DODANO: THEME / ZMIENNE
============================== */
:root{
  --bg: #f6f3ed;
  --surface: #ffffff;
  --surface-2: #fbf7f1;

  --text: #1f2937;
  --muted: #6b7280;

  --brand: #0b1220;
  --brand-2: #1f2a44;

  /* EDYTOWANO: zielony zostawiam jako opcję, ale nie jako główny CTA */
  --green: #2e7d32;

  --gold: #d4b870;       /* złoty detal */

  /* EDYTOWANO: spójne CTA z granatem (menu/stopka) */
  --accent: rgba(5, 49, 110, 0.94);   /* domyślny kolor przycisków */
  --cta: rgba(5, 49, 110, 0.94);      /* "Czytaj dalej" */

  --border: #e7ddcc;
  --shadow: 0 10px 24px rgba(17,24,39,.08);
  --shadow-soft: 0 6px 16px rgba(17,24,39,.06);

  --radius: 14px;
  --radius-sm: 10px;

  --gutter: 20px;
}

/* ==============================
   OGÓLNE
============================== */
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif; /* EDYTOWANO */
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

/* DODANO: linki */
a { color: inherit; }
a:hover { opacity: .92; }

/* DODANO: focus dla klawiatury */
:focus-visible{
  outline: 3px solid rgba(212,184,112,.45);
  outline-offset: 2px;
}

/* ==============================
   BANER
============================== */
.banner-spichlerz {
  width: 100%;
  margin: 0;
  padding: 0 12px;
  background: transparent;
}

.banner-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  height: clamp(220px, 34vw, 400px);
  overflow: hidden;
  border-radius: 0 0 18px 18px;
  background-color: #f8f4ec;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
}

.banner-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.10) 0%,
    rgba(0, 0, 0, 0.05) 35%,
    rgba(0, 0, 0, 0.16) 100%
  );
  pointer-events: none;
}

.banner-inner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* LOGO NA BANERZE – LEWA STRONA */

/* =========================================================
   DODANO: awaryjne wyłączenie białej kropki / starych ozdobników
   ========================================================= */
.banner-spichlerz::before,
.banner-spichlerz::after,
.banner-inner::before {
  display: none !important;
  content: none !important;
}

/* =========================================================
   EDYTOWANO: jedno spójne ustawienie logo na banerze
   Usunięto sprzeczne deklaracje tła, cienia i rozmiarów.
   ========================================================= */
.banner-logo {
  position: absolute;
  top: 1%;
  left: 2%;
  transform: translateY(-50%);
  z-index: 5;

  /* DODANO: logo bez białego koła i bez dodatkowych ozdobników */
  background: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.banner-logo img {
  height: 400px;
  width: auto;
  display: block;
  max-width: none;
}

/* =========================================================
   EDYTOWANO: tablet
   ========================================================= */
@media (min-width: 601px) and (max-width: 992px) {
  .banner-logo {
    left: 4% !important;
    top: 0% !important;
    transform: translateY(-50%) !important;
  }

  .banner-logo img {
    height: 300px !important;
    width: auto !important;
    max-width: 220px !important;
  }
}

/* =========================================================
   EDYTOWANO: telefon
   ========================================================= */
@media (max-width: 600px) {
  .banner-logo {
    left: -20% !important;
    top: 0% !important;
    transform: translate(-50%, -50%) !important;
  }

  .banner-logo img {
    height: 200px !important;
    width: auto !important;
    max-width: none !important;
  }
}

header,
.banner-spichlerz {
  margin-bottom: 0;
  padding-bottom: 0;
}

.main-container {
  margin-top: 0;
}

/* ==============================
   DODANO: NOWE MENU GŁÓWNE
   Równe, spokojne i bez rozjeżdżania
============================== */
.main-nav-spichlerz {
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(5, 49, 110, 0.94);
  border-radius: 0 0 16px 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* DODANO: główna lista menu */
.main-nav-list {
  list-style: none;
  margin: 0;
  padding: 0 18px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
  min-height: 64px;
}

/* DODANO: każdy element menu ma tę samą logikę wysokości */
.main-nav-list > .nav-item {
  position: relative;
  display: flex;
  align-items: stretch;
}

/* DODANO: wspólny wygląd linków i buttonów */
.main-nav-spichlerz .nav-link,
.main-nav-spichlerz .dropbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 64px;
  padding: 0 18px;
  margin: 0; /* DODANO: zerowanie globalnego margin-top z button */
  width: auto; /* DODANO: zerowanie globalnego width:100% */
  border: none;
  background: transparent;
  color: #ffffff;
  text-decoration: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 0;
  position: relative;
  appearance: none; /* DODANO: wyrównanie wyglądu buttona */
  -webkit-appearance: none; /* DODANO: dla przeglądarek webkit */
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.main-nav-spichlerz .dropbtn {
  flex: 0 0 auto; /* DODANO: brak rozciągania przycisku */
}

/* DODANO: hover bez cyrku i bez skakania jak pchła po patelni */
.main-nav-spichlerz .nav-link:hover,
.main-nav-spichlerz .dropbtn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

/* DODANO: aktywna pozycja */
.main-nav-spichlerz .nav-link.active {
  background: rgba(255, 255, 255, 0.10);
}

/* DODANO: dolna kreska dla aktywnego i hover */
.main-nav-spichlerz .nav-link::after,
.main-nav-spichlerz .dropbtn::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 10px;
  height: 3px;
  border-radius: 999px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.main-nav-spichlerz .nav-link:hover::after,
.main-nav-spichlerz .dropbtn:hover::after,
.main-nav-spichlerz .nav-link.active::after,
.main-nav-spichlerz .dropdown.open .dropbtn::after {
  transform: scaleX(1);
}

/* DODANO: strzałka dropdownu */
.main-nav-spichlerz .nav-arrow {
  font-size: 12px;
  line-height: 1;
  opacity: 0.9;
  transition: transform 0.2s ease;
}

.main-nav-spichlerz .dropdown:hover .nav-arrow,
.main-nav-spichlerz .dropdown.open .nav-arrow {
  transform: rotate(180deg);
}

/* ==============================
   DODANO: DROPDOWN
============================== */
.main-nav-spichlerz .dropdown-content {
  list-style: none;
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 260px;
  max-width: 320px;
  max-height: 380px;
  overflow-y: auto;
  margin: 0;
  padding: 8px 0;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16);
  z-index: 1100;
}

/* DODANO: scrollbar trochę bardziej ludzki */
.main-nav-spichlerz .dropdown-content::-webkit-scrollbar {
  width: 8px;
}

.main-nav-spichlerz .dropdown-content::-webkit-scrollbar-thumb {
  background: rgba(5, 49, 110, 0.35);
  border-radius: 999px;
}

.main-nav-spichlerz .dropdown-content li {
  margin: 0;
  padding: 0;
}

.main-nav-spichlerz .dropdown-content a {
  display: block;
  padding: 12px 16px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  white-space: normal;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    padding-left 0.2s ease;
}

.main-nav-spichlerz .dropdown-content a:hover {
  background: var(--surface-2);
  color: var(--brand);
  padding-left: 20px;
}

/* DODANO: desktop hover */
@media (min-width: 993px) {
  .main-nav-spichlerz .dropdown:hover .dropdown-content {
    display: block;
  }
}

/* DODANO: mobile/tablet klik */
.main-nav-spichlerz .dropdown.open .dropdown-content {
  display: block;
}

/* ==============================
   DODANO: TABLET / MOBILE
============================== */
@media (max-width: 992px) {
  .main-nav-spichlerz {
    border-radius: 0 0 14px 14px;
    margin: 0 12px;
  }

  .main-nav-list {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    padding: 10px;
    min-height: auto;
  }

  .main-nav-list > .nav-item {
    width: 100%;
    display: block;
  }

  .main-nav-spichlerz .nav-link,
  .main-nav-spichlerz .dropbtn {
    width: 100%;
    min-height: 52px;
    justify-content: space-between;
    padding: 0 14px;
    border-radius: 12px;
    text-align: left;
  }

  .main-nav-spichlerz .nav-link::after,
  .main-nav-spichlerz .dropbtn::after {
    left: 14px;
    right: 14px;
    bottom: 7px;
  }

  .main-nav-spichlerz .dropdown-content {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    min-width: 100%;
    max-width: 100%;
    max-height: 260px;
    margin-top: 6px;
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
  }
}

/* DODANO: bardzo małe ekrany */
@media (max-width: 600px) {
  .main-nav-spichlerz {
    margin: 0 8px;
  }

  .main-nav-list {
    padding: 8px;
  }

  .main-nav-spichlerz .nav-link,
  .main-nav-spichlerz .dropbtn {
    font-size: 14px;
    min-height: 50px;
  }
}

/* ==============================
   GŁÓWNA ZAWARTOŚĆ
============================== */
.container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 15px;
}

/* UKŁAD 3 KOLUMN */
.layout {
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  gap: var(--gutter);
  max-width: 1200px;
  margin: 22px auto;
  padding: 0 12px;
}

/* Boczne kolumny */
.left-column,
.right-column {
  background: transparent;
  padding: 0;
  border: none;
}

/* Środek – “papier” */
.center-column {
  background: var(--surface);
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

/* ===============================
   SIDEBAR (lewa + prawa ta sama logika)
=============================== */
.sidebar,
.sidebar.left {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

/* box */
.sidebar-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 14px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 16px;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}

.sidebar-box:hover {
  box-shadow: var(--shadow);
  border-color: rgba(212,184,112,.55);
  transform: translateY(-1px);
}

.sidebar-box h3,
.sidebar-title {
  /* EDYTOWANO: ujednolicenie typografii (koniec „dwa światy naraz”) */
  font-family: inherit;
  font-size: 16px;
  font-weight: 900;
  color: var(--brand);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: none;
}

.sidebar-box h3::before {
  content: "▸";
  color: var(--gold);
  font-size: 18px;
  opacity: .9;
}

/* Listy */
.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-list li {
  padding: 6px 0;
}

.sidebar-list li a {
  text-decoration: none;
  color: #2f2a25;
  transition: color 0.2s ease;
}

.sidebar-list li a:hover {
  color: var(--brand-2);
}

/* ===============================
   Formularz wyszukiwania
=============================== */
.search-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-form input[type="text"] {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 15px;
  background: var(--surface);
}

.search-form input[type="text"]:focus {
  border-color: rgba(212,184,112,.85);
  outline: none;
  box-shadow: 0 0 0 3px rgba(212,184,112,0.22);
}

/* EDYTOWANO: koniec zielonego CTA */
.search-form button {
  border: none;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  padding: 10px 0;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease, background .18s ease;
}

.search-form button:hover {
  transform: translateY(-1px);
  filter: none;
  background: rgba(212,184,112,.22);
}

/* ===============================
   Najpopularniejsze – miniaturki
=============================== */
.popular-mini {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mini-article {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  background: var(--surface);
  border-radius: 12px;
  padding: 10px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.mini-article:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  border-color: rgba(212,184,112,.55);
}

.mini-article img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.mini-title {
  font-size: 15px;
  color: #2f2a25;
  font-weight: 800;
  line-height: 1.3;
}

.mini-article:hover .mini-title {
  color: var(--brand-2);
}

/* ===============================
   Losowy wpis
=============================== */
.random-article {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #333;
  text-align: center;
}

.random-article img {
  width: 100%;
  height: 160px; /* EDYTOWANO: odrobinę mniejsze, mniej „pocztówkowe” */
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 10px;
  transition: transform .25s ease;
  box-shadow: 0 10px 18px rgba(0,0,0,.10);
}

.random-article:hover img {
  transform: scale(1.02);
}

.random-article p,
.random-article span {
  margin: 0;
  padding: 6px 0 0;
  font-weight: 900;
  color: #2f2a25;
}

/* ===============================
   Cytat dnia
=============================== */
.quote-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 14px;
  box-shadow: var(--shadow-soft);
  position: relative;
  margin-top: 14px;
}

.quote-box::before {
  content: "“";
  position: absolute;
  top: -12px;
  left: 12px;
  font-size: 44px;
  color: rgba(212,184,112,0.25);
}

.quote-box h3 {
  margin: 0 0 6px;
  font-size: 15px;
  color: var(--brand);
}

.quote-box blockquote {
  font-style: italic;
  color: #3f3b37;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

/* ==============================
   ARTYKUŁY (karta wpisu)
============================== */
.articles-container { padding: 10px; }

.article-card,
.article-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--surface);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  padding: 14px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.article-card:hover,
.article-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(212,184,112,.55);
}

/* Miniatury */
.article-card img.thumbnail {
  width: 220px;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 16px rgba(0,0,0,.12);
}

.article-thumb {
  flex: 0 0 220px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Uniwersalne miniatury */
.article-item .article-thumb img,
.article-item img.thumb {
  width: 220px !important;
  height: 150px !important;
  object-fit: cover !important;
  border-radius: var(--radius-sm);
  display: block;
  box-shadow: 0 8px 16px rgba(0,0,0,.12);
}

.article-content,
.article-info {
  flex: 1;
  padding: 4px 2px;
}

.article-content h2,
.article-item h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
  color: var(--brand);
}

.article-content .meta {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0 10px;
}

.article-item p,
.article-content p {
  margin-top: 8px;
  color: #3b3f46;
  line-height: 1.6;
}

/* CTA: “Czytaj dalej” */
.read-more,
.article-item a.read-more,
.article-item a.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  color: #fff;

  /* EDYTOWANO: spójne CTA */
  background: var(--cta);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 10px 18px rgba(0,0,0,.10);

  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.read-more:hover,
.article-item a.read-more:hover,
.article-item a.read-more-link:hover {
  transform: translateY(-1px);

  /* DODANO: złoty hover */
  background: rgba(212,184,112,.22);
  border-color: rgba(212,184,112,.40);
}

/* ==============================
   PAGINACJA
============================== */
.pagination {
  text-align: center;
  margin-top: 18px;
}

.pagination .page-link {
  display: inline-block;
  margin: 0 4px;
  padding: 8px 12px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform .15s ease, background .15s ease;
}

.pagination .page-link:hover {
  transform: translateY(-1px);
  background: var(--surface-2);
}

.pagination .page-link.active {
  background: rgba(212,184,112,.22);
  border-color: rgba(212,184,112,.55);
  font-weight: 900;
}

/* ===============================
   STRONA TAGÓW
=============================== */
.tag-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 15px;
}

.tag-article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.tag-article-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(212,184,112,.55);
}

.tag-article-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.tag-article-card h2 {
  font-size: 16px;
  color: var(--brand);
  padding: 12px;
  line-height: 1.4;
}

/* ==============================
   STOPKA (główna) – .site-footer
============================== */
.site-footer {
  background: rgba(5, 49, 110, 0.94);
  color: rgba(255,255,255,.90);
  padding: 48px 28px 22px;
  font-size: 15px;
  line-height: 1.7;
  border-radius: var(--radius);

  /* EDYTOWANO: border nie-zielony */
  border: 1px solid rgba(255,255,255,.10);

  box-shadow: 0 16px 30px rgba(0,0,0,.18);
  max-width: 1200px;
  margin: 40px auto 20px;
}

.footer-container {
  display: flex !important;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.footer-column {
  flex: 1 1 220px;
  min-width: 220px;
}

.footer-column h3,
.footer-column h4 {
  color: #fff;
  margin-bottom: 10px;
  font-weight: 800;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li { margin-bottom: 6px; }

.footer-column a {
  color: rgba(255,255,255,.88);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all .2s ease-in-out;
}

.footer-column a:hover {
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.55);
}

.footer-bottom {
  margin-top: 28px;
  font-size: 14px;
  letter-spacing: 0.3px;
  opacity: .9;
}

footer {
  background: transparent;
  color: inherit;
  text-align: center;
  padding: 0;
  border: none;
  box-shadow: none;
}

/* ==============================
   COOKIE POPUP
============================== */
.cookie-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  z-index: 9998;
}

.cookie-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
  max-width: 520px;
  width: 92%;
  padding: 24px 26px;
  text-align: center;
  display: none;
  z-index: 9999;
  font-family: inherit;
}

.cookie-content label {
  display: block;
  text-align: left;
  margin: 6px 0;
}

.cookie-buttons {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-buttons button {
  padding: 10px 14px;
  border: none;
  border-radius: 10px;
  background-color: var(--brand-2);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}
.cookie-buttons .reject { background-color: #b84c4c; }
.cookie-buttons .manage { background-color: #6c757d; }
.cookie-buttons button:hover { opacity: 0.92; }

/* ==============================
   KOMENTARZE – (zostaje)
============================== */
#comments { margin-top: 28px; }

#comments h3 {
  font-size: 1.25rem;
  margin: 0 0 12px 0;
  border-bottom: 2px solid rgba(231,221,204,.7);
  padding-bottom: 8px;
}

#commentsTree { margin-top: 8px; }

#comments .comment {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin: 14px 0;
  box-shadow: var(--shadow-soft);
}

#comments .cmt-header { display:flex; gap:12px; align-items:flex-start; }
#comments .cmt-avatar {
  width:40px;height:40px;border-radius:50%;
  background:#f1f3f5;color:#9aa0a6;
  display:flex;align-items:center;justify-content:center;
  font-weight:800;font-size:14px;flex:0 0 auto;
}
#comments .cmt-author { font-weight:900; color:#2b2f33; }
#comments .cmt-meta   { font-size:12px; color: var(--muted); margin-top:2px; }

#comments .cmt-content {
  margin-top:8px; color:#2f3438; line-height:1.55; white-space:pre-wrap;
}

#comments .comment-actions { display:flex; gap:18px; align-items:center; margin-top:10px; }
#comments .btn-like,
#comments .btn-reply-toggle{
  background:transparent; border:none; padding:0; cursor:pointer;
  color: var(--muted); font-weight:900; display:inline-flex; align-items:center; gap:6px;
}
#comments .btn-like:hover,
#comments .btn-reply-toggle:hover { color:#374151; }
#comments .btn-like .like-count{ font-weight:900; }
#comments .btn-like.liked{ color:#2563eb; }

#comments .comment-children{
  margin-left:48px; border-left:2px solid rgba(231,221,204,.8); padding-left:16px; margin-top:10px;
}

#comments .reply-form{ margin-top:10px; display:none; }
#comments .reply-form input[type="text"],
#comments .reply-form textarea{
  width:100%; border:1px solid var(--border); border-radius:12px; padding:10px 12px; font:inherit;
}
#comments .reply-form textarea{ resize:vertical; }
#comments .reply-form button{
  margin-top:8px; border:none; border-radius:9999px; background: var(--surface-2); padding:10px 14px; cursor:pointer; font-weight:900;
  box-shadow: var(--shadow-soft);
}
#comments .reply-form button:hover{ background:#fff; }

#comments .comment-form {
  display: grid;
  gap: 10px;
  max-width: 700px;
}

#comments .comment-form input[type="text"],
#comments .comment-form textarea{
  width:100%; border:1px solid var(--border); border-radius:12px; padding:10px 12px; font:inherit;
}
#comments .comment-form textarea{ resize:vertical; min-height: 160px; }

#comments .comment-form button {
  border: none;
  border-radius: 9999px;
  background: var(--brand-2);
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 12px 22px rgba(0,0,0,.12);
}
#comments .comment-form button:hover { filter: brightness(1.04); }

#comments .comment-form .hint{ font-size:12px; color: var(--muted); margin:0; }

/* ==============================
   FLASH POPUP
============================== */
.flash-popup {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translate(-50%, 40px);
  background: #e8f5e9;
  color: #166534;
  padding: 15px 25px;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.18);
  font-size: 16px;
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 9999;
  text-align: center;
  max-width: 90%;
}
.flash-popup.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ==============================
   ARTYKUŁ – obrazki w treści
============================== */
.article-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 15px auto;
  border-radius: 12px;
  box-shadow: 0 10px 18px rgba(0,0,0,0.12);
}

/* ==============================
   KONTAKT
============================== */
.contact-box {
  max-width: 640px;
  background: var(--surface);
  margin: 60px auto;
  padding: 26px 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.contact-box h1 {
  text-align: center;
  color: var(--brand);
  margin-bottom: 18px;
}

label {
  display: block;
  margin-top: 10px;
  font-weight: 900;
  color: #333;
}

input[type=text],
input[type=email],
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow .2s ease;
}

input[type=text]:focus,
input[type=email]:focus,
textarea:focus {
  border-color: rgba(212,184,112,.85);
  outline: none;
  box-shadow: 0 0 0 3px rgba(212,184,112,0.22);
}

textarea { resize: vertical; min-height: 120px; }

/* EDYTOWANO: globalny button – spójny kolor, ale ostrożnie nadal 100% */
button {
  display: block;
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 0;
  font-size: 16px;
  border-radius: 12px;
  margin-top: 15px;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,.10);
}
button:hover {
  transform: translateY(-1px);
  background: rgba(212,184,112,.22);
  border-color: rgba(212,184,112,.40);
}

.success-msg { color: var(--green); font-weight: 900; text-align: center; margin-top: 10px; }
.error-msg { color: #b30000; font-weight: 900; text-align: center; margin-top: 10px; }

.hidden-field { display: none; }

/* RODO */
.rodo-info {
  font-size: 12px;
  color: #555;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 15px;
  line-height: 1.45;
}

.rodo-info strong { color: #333; font-weight: 900; }

.rodo-info a { color: var(--brand); text-decoration: underline; }
.rodo-info a:hover { text-decoration: none; color: #000; }

/* ==============================
   POLITYKA PRYWATNOŚCI / COOKIES
============================== */
.privacy-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 30px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  line-height: 1.7;
  color: var(--text);
}

.privacy-container h1 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 30px;
  color: var(--brand);
  border-bottom: 2px solid rgba(212,184,112,.75);
  padding-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.privacy-container h2 {
  font-size: 1.3rem;
  color: var(--brand);
  margin-top: 35px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(212,184,112,.75);
  padding-bottom: 5px;
}

.privacy-container p { margin-bottom: 15px; text-align: justify; }
.privacy-container ul { margin: 10px 0 20px 25px; }
.privacy-container li { margin-bottom: 8px; }
.privacy-container a { color: var(--brand-2); text-decoration: none; }
.privacy-container a:hover { text-decoration: underline; }

.cookie-policy-container {
  max-width: 800px;
  margin: 40px auto;
  font-family: inherit;
  color: var(--text);
  line-height: 1.6;
}

.cookie-info-box {
  margin-top: 40px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  font-size: 15px;
  color: #333;
  box-shadow: var(--shadow-soft);
}

.cookie-btn {
  margin-top: 10px;
  padding: 10px 14px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: filter 0.2s ease;
  font-weight: 900;
}
.cookie-btn:hover { filter: brightness(1.07); }

/* ==============================
   TAG PAGINATION
============================== */
.tag-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  padding-top: 8px;
  border-top: 1px dashed rgba(231,221,204,.9);
}

.tag-pagination a {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--brand);
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  min-width: 26px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.tag-pagination a:hover {
  background: rgba(212,184,112,.22);
}

.tag-pagination a.active {
  background: rgba(212,184,112,.22);
  border-color: rgba(212,184,112,.55);
  font-weight: 900;
}

.table img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

.table img:hover {
  transform: scale(1.05);
  transition: 0.2s;
}

/* ==============================
   RESPONSYWNOŚĆ
============================== */
@media (max-width: 992px) {
  .banner-spichlerz { height: 300px; }
  .banner-logo img { height: 180px; }

  .layout { grid-template-columns: 1fr; }

  .article-card,
  .article-item {
    flex-direction: column;
  }

  .article-card img.thumbnail,
  .article-item .article-thumb img,
  .article-item img.thumb {
    width: 100% !important;
    height: 220px !important;
  }
}

@media (max-width: 600px) {
  .banner-spichlerz { height: 220px; }
  .banner-logo img { height: 120px; }
  
}

/* mobile komentarze */
@media (max-width: 640px){
  #comments .comment-children { margin-left: 24px; padding-left: 12px; }
}

/* stopka na mobile */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact-box {
    margin: 30px 15px;
    padding: 20px;
  }
}
