:root {
  --green: #2E7D32;
  --green-dark: #1B5E20;
  --green-light: #E8F5E9;
  --green-border: #C8E6C9;
  --ink: #1f241f;
  --muted: #5a5f5a;
  --bg: #f4f7f4;
  --card: #ffffff;
  --radius: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ---------- nav (zawsze "scrolled" wariant na blogu = jasne tło) ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; gap: 16px;
  padding: 12px 22px; background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px); box-shadow: 0 1px 12px rgba(0,0,0,.08);
}
.nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.32rem; color: var(--green-dark); letter-spacing: -.2px; text-decoration: none; }
.nav .brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.nav .nav-links { display: flex; gap: 22px; margin-left: 24px; }
.nav .nav-links a { color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 500; }
.nav .nav-links a:hover { color: var(--green-dark); }
.nav .nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav .nav-cta { background: var(--green); color: #fff; text-decoration: none; font-weight: 600; font-size: .9rem; padding: 9px 18px; border-radius: 999px; box-shadow: 0 2px 8px rgba(46,125,50,.3); }
.nav .nav-cta:hover { background: var(--green-dark); }

/* ---------- sticky social rail ---------- */
.social-rail { position: fixed; top: 50%; right: 16px; transform: translateY(-50%); z-index: 90; display: flex; flex-direction: column; gap: 12px; }
.social-rail a { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--green); box-shadow: 0 6px 18px rgba(0,0,0,.18); transition: transform .15s ease, box-shadow .2s ease, background .2s ease; }
.social-rail a:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.26); }
.social-rail a.r-fb:hover { background: #1877f2; }
.social-rail a.r-tt:hover { background: #000; }
.social-rail a.r-gp:hover { background: #34a853; }
.social-rail a.r-as:hover { background: #0d96f6; }
.social-rail svg { width: 24px; height: 24px; }
@media (max-width: 760px) { .social-rail { display: none; } }

/* ---------- layout container ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.page { padding-top: 92px; padding-bottom: 40px; }

/* ---------- blog index hero ---------- */
.blog-hero { text-align: center; padding: 26px 22px 38px; }
.blog-hero .eyebrow { display: inline-block; background: var(--green-light); color: var(--green-dark); font-weight: 700; font-size: .78rem; letter-spacing: .4px; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; margin-bottom: 14px; }
.blog-hero h1 { font-size: 2.4rem; letter-spacing: -.5px; line-height: 1.1; margin-bottom: 12px; }
.blog-hero p { color: var(--muted); font-size: 1.06rem; max-width: 620px; margin: 0 auto; }

/* ---------- category filter chips ---------- */
.cat-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 22px 0 30px; }
.cat-chip { background: #fff; border: 1px solid var(--green-border); color: var(--muted); font-weight: 600; font-size: .86rem; padding: 7px 16px; border-radius: 999px; text-decoration: none; transition: all .15s ease; }
.cat-chip:hover, .cat-chip.active { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- post grid ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 26px; }
.post-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 18px rgba(0,0,0,.07); text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-5px); box-shadow: 0 14px 32px rgba(0,0,0,.14); }
.post-card .cover { aspect-ratio: 16 / 9; background-size: cover; background-position: center; position: relative; display: grid; place-items: center; font-size: 3.4rem; }
.post-card .cover.grad-a { background: linear-gradient(140deg, #43A047, #1B5E20); }
.post-card .cover.grad-b { background: linear-gradient(140deg, #26A69A, #00695C); }
.post-card .cover.grad-c { background: linear-gradient(140deg, #FB8C00, #E65100); }
.post-card .cover.grad-d { background: linear-gradient(140deg, #5C6BC0, #283593); }
.post-card .badge { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.95); color: var(--green-dark); font-weight: 700; font-size: .72rem; letter-spacing: .3px; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }
.post-card .body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.post-card .meta { color: var(--muted); font-size: .8rem; margin-bottom: 8px; display: flex; gap: 8px; align-items: center; }
.post-card h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -.2px; margin-bottom: 8px; }
.post-card .excerpt { color: var(--muted); font-size: .92rem; flex: 1; }
.post-card .more { margin-top: 14px; color: var(--green); font-weight: 700; font-size: .9rem; }

.empty { text-align: center; color: var(--muted); padding: 60px 0; }

/* ---------- single post ---------- */
.post-hero { background: linear-gradient(140deg, var(--green), var(--green-dark)); color: #fff; padding: 116px 22px 54px; text-align: center; }
.post-hero.grad-a { background: linear-gradient(140deg, #43A047, #1B5E20); }
.post-hero.grad-b { background: linear-gradient(140deg, #26A69A, #00695C); }
.post-hero.grad-c { background: linear-gradient(140deg, #FB8C00, #E65100); }
.post-hero.grad-d { background: linear-gradient(140deg, #5C6BC0, #283593); }
.post-hero .badge { display: inline-block; background: rgba(255,255,255,.22); color: #fff; font-weight: 700; font-size: .74rem; letter-spacing: .4px; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; }
.post-hero h1 { font-size: 2.3rem; line-height: 1.15; letter-spacing: -.5px; max-width: 760px; margin: 0 auto 14px; }
.post-hero .post-meta { opacity: .9; font-size: .92rem; }

.article { max-width: 720px; margin: 0 auto; padding: 40px 22px 10px; font-size: 1.08rem; }
.article p { margin: 0 0 20px; }
.article h2 { font-size: 1.55rem; letter-spacing: -.3px; margin: 36px 0 14px; }
.article h3 { font-size: 1.22rem; margin: 28px 0 10px; }
.article ul, .article ol { margin: 0 0 20px; padding-left: 22px; }
.article li { margin-bottom: 9px; }
.article a { color: var(--green-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.article img { border-radius: var(--radius); margin: 24px 0; box-shadow: 0 6px 22px rgba(0,0,0,.1); }
.article strong { color: var(--ink); }

/* callout boxes */
.callout { border-radius: 14px; padding: 16px 18px 16px 50px; margin: 24px 0; position: relative; font-size: 1rem; line-height: 1.55; }
.callout::before { position: absolute; left: 16px; top: 15px; font-size: 1.3rem; }
.callout.tip { background: var(--green-light); border: 1px solid var(--green-border); }
.callout.tip::before { content: "💡"; }
.callout.warn { background: #FFF4E5; border: 1px solid #FFE0B2; }
.callout.warn::before { content: "⚠️"; }
.callout.vet { background: #E3F2FD; border: 1px solid #BBDEFB; }
.callout.vet::before { content: "🩺"; }

/* pull quote */
.pullquote { border-left: 4px solid var(--green); background: #fff; padding: 18px 22px; margin: 28px 0; font-size: 1.22rem; font-weight: 600; color: var(--green-dark); border-radius: 0 12px 12px 0; box-shadow: 0 3px 14px rgba(0,0,0,.05); }

/* in-article CTA to download */
.app-cta { background: linear-gradient(160deg, var(--green) 0%, var(--green-dark) 100%); color: #fff; border-radius: 20px; padding: 34px 26px; text-align: center; margin: 40px auto; max-width: 720px; }
.app-cta h3 { font-size: 1.5rem; margin-bottom: 8px; }
.app-cta p { opacity: .92; margin-bottom: 22px; }
.store-badges { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--ink); text-decoration: none; padding: 11px 18px; border-radius: 14px; box-shadow: 0 6px 18px rgba(0,0,0,.18); transition: transform .15s ease, box-shadow .2s ease; }
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.26); }
.store-badge svg { width: 26px; height: 26px; flex-shrink: 0; }
.store-badge small { display: block; font-size: .68rem; font-weight: 500; opacity: .7; line-height: 1; margin-bottom: 2px; }
.store-badge span.big { font-size: 1.04rem; line-height: 1.1; font-weight: 700; }

/* related posts */
.related { max-width: 1080px; margin: 10px auto 0; padding: 30px 22px 50px; }
.related h2 { font-size: 1.4rem; margin-bottom: 20px; text-align: center; }
.back-link { display: inline-block; margin: 0 0 10px; color: var(--green-dark); font-weight: 600; text-decoration: none; }
.back-link:hover { text-decoration: underline; }

/* ---------- footer (z landingu) ---------- */
footer { background: #161a16; color: #c4ccc4; padding: 46px 24px 34px; margin-top: 20px; }
.footer-inner { max-width: 1080px; margin: 0 auto; }
.footer-top { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: #fff; margin-bottom: 18px; }
.footer-top img { width: 32px; height: 32px; border-radius: 8px; }
.footer-social { display: flex; gap: 12px; margin-bottom: 22px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: #2a302a; display: grid; place-items: center; color: #c4ccc4; transition: background .2s ease, color .2s ease; }
.footer-social a:hover { background: var(--green); color: #fff; }
.footer-social svg { width: 19px; height: 19px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 18px; }
.footer-links a { color: #c4ccc4; text-decoration: none; font-size: .9rem; }
.footer-links a:hover { color: #fff; }
.footer-meta { font-size: .82rem; opacity: .7; }

@media (max-width: 600px) {
  .blog-hero h1 { font-size: 1.8rem; }
  .post-hero h1 { font-size: 1.7rem; }
  .nav .nav-links { gap: 14px; margin-left: 12px; }
  .nav .brand span, .nav .brand { font-size: 1.1rem; }
}
