/* ============================================================
   RESET + PODSTAWY
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
    font-family: Arial, Helvetica, sans-serif;
    color: #1a1a1a;
    line-height: 1.6;
    background: #fff;
}
a { color: #2d5016; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    border-bottom: 1px solid #e0e0e0;
    padding: 22px 0 10px;
    background: #fff;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}
.logo {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 34px;
    font-weight: 900;
    color: #2d5016;
    letter-spacing: -1px;
}
.search-form {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 2px;
    overflow: hidden;
}
.search-form input {
    border: 0;
    padding: 8px 12px;
    font-size: 14px;
    width: 220px;
    outline: none;
    font-family: inherit;
}
.search-form button {
    background: #2d5016;
    color: #fff;
    border: 0;
    padding: 0 14px;
    cursor: pointer;
    font-size: 14px;
}
.header-tagline {
    font-size: 13px;
    color: #666;
    margin-top: 6px;
    font-style: italic;
}

/* ============================================================
   MENU
   ============================================================ */
.site-menu {
    background: #2d5016;
    border-top: 3px solid #1e3a0e;
}
.site-menu ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
}
.site-menu a {
    display: block;
    color: #fff;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
}
.site-menu a:hover,
.site-menu a.active {
    background: #1e3a0e;
    color: #fff;
    text-decoration: none;
}
.site-menu .count {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 8px;
    margin-left: 6px;
    font-weight: 400;
}

/* ============================================================
   REKLAMY
   ============================================================ */
.ad-slot {
    padding: 20px 0;
    text-align: center;
    background: #f5f5f5;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    margin: 20px 0;
}
.ad-slot--sidebar {
    padding: 20px 0;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    margin: 0 0 24px;
    text-align: center;
}
.ad-slot--top { margin-top: 0; }

/* ============================================================
   GŁÓWNY UKŁAD
   ============================================================ */
.main-wrap {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    padding-top: 30px;
    padding-bottom: 30px;
}
.main-col { min-width: 0; }

.search-form button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
}
.search-form button svg {
    display: block;
}

/* ============================================================
   HERO (home)
   ============================================================ */
.hero { margin-bottom: 40px; }
.hero-card {
    display: block;
    color: inherit;
    text-decoration: none;
    border: 1px solid #e0e0e0;
}
.hero-card:hover { text-decoration: none; }
.hero-img {
    width: 100%;
    height: 380px;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
}
.hero-body { padding: 24px 28px; }
.hero-body h2 {
    font-family: Georgia, serif;
    font-size: 30px;
    line-height: 1.2;
    margin: 10px 0;
    color: #111;
}
.hero-card:hover h2 { color: #2d5016; }
.hero-body p { color: #444; font-size: 15px; margin-bottom: 12px; }

/* ============================================================
   SEKCJE
   ============================================================ */
.section { margin-bottom: 44px; }
.section-title {
    font-family: Georgia, serif;
    font-size: 22px;
    border-bottom: 3px solid #2d5016;
    padding-bottom: 8px;
    margin-bottom: 20px;
    display: inline-block;
    color: #111;
}
.section-title a { color: inherit; }
.section-title a:hover { color: #2d5016; }
.section-more {
    margin-top: 16px;
    text-align: right;
    font-size: 14px;
    font-weight: 700;
}

/* ============================================================
   GRID + KARTY
   ============================================================ */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
    border: 1px solid #e8e8e8;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s;
}
.card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.card-img {
    display: block;
    width: 100%;
    height: 170px;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
    border-bottom: 1px solid #e8e8e8;
}
.card-body { padding: 14px 16px 18px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 {
    font-family: Georgia, serif;
    font-size: 17px;
    line-height: 1.3;
    margin: 8px 0;
    color: #111;
}
.card-body h3 a { color: inherit; }
.card-body h3 a:hover { color: #2d5016; }
.card-body p { font-size: 13px; color: #555; margin-bottom: 10px; flex: 1; }
.meta { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: 0.5px; }

.cat-badge {
    display: inline-block;
    background: #2d5016;
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}
.cat-badge--sm { font-size: 10px; padding: 2px 6px; }

/* ============================================================
   ARTYKUŁ
   ============================================================ */
.article { max-width: 100%; }
.article-title {
    font-family: Georgia, serif;
    font-size: 38px;
    line-height: 1.15;
    margin-bottom: 14px;
    color: #111;
}
.article-meta {
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 14px;
    margin-bottom: 24px;
}
.article-hero {
    width: 100%;
    margin-bottom: 24px;
    border-radius: 2px;
}
.article-body {
    font-size: 17px;
    line-height: 1.75;
    color: #222;
}
.article-body p { margin-bottom: 18px; }
.article-body h2 {
    font-family: Georgia, serif;
    font-size: 26px;
    margin: 32px 0 14px;
    color: #111;
}
.article-body h3 {
    font-family: Georgia, serif;
    font-size: 20px;
    margin: 24px 0 10px;
    color: #111;
}
.article-body ul, .article-body ol { margin: 0 0 18px 24px; }
.article-body li { margin-bottom: 6px; }
.article-body img { margin: 20px 0; border-radius: 2px; }
.article-body blockquote {
    border-left: 4px solid #2d5016;
    padding: 8px 20px;
    margin: 20px 0;
    background: #f9f9f7;
    font-style: italic;
    color: #333;
}

.article-tags {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    font-size: 14px;
}

/* ============================================================
   TAGI
   ============================================================ */
.tag-pill {
    display: inline-block;
    background: #eef4e9;
    color: #2d5016;
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 12px;
    margin: 0 6px 6px 0;
    border: 1px solid #d6e3c8;
}
.tag-pill:hover {
    background: #2d5016;
    color: #fff;
    text-decoration: none;
}
.tag-pill span { opacity: 0.6; font-size: 10px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 4px; }

/* ============================================================
   LISTY PROSTE (tag, search)
   ============================================================ */
.simple-list { list-style: none; }
.simple-list li {
    border-bottom: 1px solid #e8e8e8;
    padding: 16px 0;
}
.simple-list li:first-child { padding-top: 0; }
.simple-list a {
    font-family: Georgia, serif;
    font-size: 18px;
    color: #111;
}
.simple-list a:hover { color: #2d5016; }
.simple-list p { color: #555; font-size: 14px; margin: 6px 0; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar { min-width: 0; }
.side-box {
    background: #f9f9f7;
    border: 1px solid #e8e8e8;
    padding: 18px;
    margin-bottom: 24px;
}
.side-title {
    font-family: Georgia, serif;
    font-size: 16px;
    border-bottom: 2px solid #2d5016;
    padding-bottom: 8px;
    margin-bottom: 14px;
    color: #111;
}
.side-list { list-style: none; }
.side-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e8e8e8;
}
.side-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.side-list a {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    display: block;
}
.side-list a:hover { color: #2d5016; }
.side-meta { font-size: 11px; color: #888; margin-top: 4px; }

/* ============================================================
   BREADCRUMBS / PAGE TITLE
   ============================================================ */
.breadcrumbs {
    font-size: 13px;
    color: #888;
    margin-bottom: 14px;
}
.breadcrumbs a { color: #666; }
.breadcrumbs a:hover { color: #2d5016; }

.page-title {
    font-family: Georgia, serif;
    font-size: 34px;
    margin-bottom: 6px;
    color: #111;
}
.page-subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e0e0e0;
}

/* ============================================================
   PAGINACJA
   ============================================================ */
.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin: 32px 0;
    flex-wrap: wrap;
}
.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #ccc;
    color: #2d5016;
    font-weight: 700;
    font-size: 14px;
}
.pagination a:hover {
    background: #2d5016;
    color: #fff;
    text-decoration: none;
    border-color: #2d5016;
}
.pagination .current {
    background: #2d5016;
    color: #fff;
    border-color: #2d5016;
}

/* ============================================================
   404
   ============================================================ */
.error-404 {
    text-align: center;
    padding: 80px 20px;
}
.error-404 h1 {
    font-family: Georgia, serif;
    font-size: 100px;
    color: #2d5016;
    line-height: 1;
}
.error-404 p { font-size: 18px; color: #555; margin: 20px 0; }
.btn {
    display: inline-block;
    background: #2d5016;
    color: #fff;
    padding: 10px 22px;
    font-weight: 700;
    font-size: 14px;
}
.btn:hover { background: #1e3a0e; color: #fff; text-decoration: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: #1a1a1a;
    color: #ccc;
    margin-top: 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
    padding: 40px 20px;
}
.footer-grid h4 {
    font-family: Georgia, serif;
    color: #fff;
    margin-bottom: 14px;
    font-size: 15px;
}
.footer-grid ul { list-style: none; }
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid a { color: #ccc; font-size: 14px; }
.footer-grid a:hover { color: #fff; }
.footer-grid p { font-size: 13px; line-height: 1.6; }
.footer-bottom {
    border-top: 1px solid #333;
    padding: 16px 0;
    font-size: 12px;
    text-align: center;
    color: #888;
}

/* ============================================================
   RESPONSYWNOŚĆ
   ============================================================ */
@media (max-width: 900px) {
    .main-wrap { grid-template-columns: 1fr; gap: 30px; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-img { height: 240px; }
    .hero-body h2 { font-size: 22px; }
    .article-title { font-size: 28px; }
}
@media (max-width: 600px) {
    .header-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
    .search-form input { width: 100%; }
    .grid-3 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .site-menu a { padding: 10px 12px; font-size: 12px; }
}
/* ── Menu mobile ── */
.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    padding: 12px 0;
    align-items: center;
    gap: 8px;
}
.menu-toggle svg { display: block; }

@media (max-width: 768px) {
    .site-menu ul {
        display: none;
        flex-direction: column;
        flex-wrap: nowrap;
    }
    .site-menu ul.is-open {
        display: flex;
    }
    .menu-toggle {
        display: flex;
    }
    .site-menu a {
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-size: 13px;
    }
    .site-menu a.active { background: #1e3a0e; }
}
/* ── Scroll to top ── */
.scroll-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 46px;
    height: 46px;
    background: #2d5016;
    color: #fff;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s, transform 0.15s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 999;
}
.scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
}
.scroll-top:hover {
    background: #1e3a0e;
    transform: translateY(-2px);
}
.scroll-top svg {
    display: block;
    width: 20px;
    height: 20px;
}
@media (max-width: 600px) {
    .scroll-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
}