:root {
  --color-bg: #ffffff;
  --color-surface: #f6f8fb;
  --color-surface-2: #eef3f8;
  --color-text: #0f172a;
  --color-muted: #4b5563;
  --color-border: #e5eaf0;
  --color-primary: #0b6cc0;       /* świeży granat-błękit */
  --color-primary-dark: #084e8c;
  --color-accent: #10b981;        /* energiczna zieleń */
  --color-accent-dark: #059669;
  --color-warning: #f59e0b;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06);
  --shadow-md: 0 6px 20px rgba(15,23,42,.08);
  --shadow-lg: 0 20px 40px rgba(15,23,42,.12);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1200px;
  --font-display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--color-primary-dark); }

h1,h2,h3,h4,h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
  margin: 0 0 .6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--color-muted); }

/* Layout */
.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section-tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.section-muted { background: var(--color-surface); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-family: var(--font-display);
  background: var(--color-primary); color: #fff !important;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  border: none; cursor: pointer; font-size: .95rem;
}
.btn:hover { background: var(--color-primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); color:#fff !important; }
.btn-accent { background: var(--color-accent); }
.btn-accent:hover { background: var(--color-accent-dark); }
.btn-ghost { background: transparent; color: var(--color-text) !important; border: 1px solid var(--color-border); }
.btn-ghost:hover { background: var(--color-surface); color: var(--color-text) !important; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .9rem 0;
}
.site-branding { display: flex; align-items: center; gap: .75rem; }
.site-branding .custom-logo { max-height: 52px; width: auto; }
.site-title {
  font-family: var(--font-display); font-weight: 800; font-size: 1.25rem;
  margin: 0; letter-spacing: -.01em;
}
.site-title a { color: var(--color-text); }
.site-description { font-size: .8rem; color: var(--color-muted); margin: 0; }

/* Nav */
.main-navigation ul { list-style: none; padding: 0; margin: 0; display: flex; gap: .25rem; }
.main-navigation a {
  display: inline-block; padding: .55rem .9rem; border-radius: 999px;
  color: var(--color-text); font-weight: 500; font-size: .95rem;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  background: var(--color-surface-2); color: var(--color-primary);
}
.main-navigation .sub-menu {
  position: absolute; display: none; min-width: 220px;
  background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: .5rem; margin-top: .5rem;
  box-shadow: var(--shadow-lg); flex-direction: column;
}
.main-navigation li { position: relative; }
.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu { display: flex; }

/* Mobile nav */
.menu-toggle {
  display: none; background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: 12px; padding: .55rem .8rem; font-weight: 600; cursor: pointer;
}
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; align-items: center; gap: .4rem; }
  .main-navigation { display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--color-border); padding: 1rem; box-shadow: var(--shadow-md); }
  .main-navigation.is-open { display: block; }
  .main-navigation ul { flex-direction: column; gap: 0; }
  .main-navigation .sub-menu { position: static; box-shadow: none; border: none; padding-left: .75rem; }
  .main-navigation li:hover > .sub-menu { display: flex; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(16,185,129,.18), transparent 60%),
    radial-gradient(1000px 500px at -10% 30%, rgba(11,108,192,.18), transparent 60%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--color-border);
}
.hero-inner {
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center;
  gap: 3rem; padding: clamp(3rem, 7vw, 6rem) 0;
}
.hero-eyebrow {
  display: inline-block; padding: .35rem .75rem; border-radius: 999px;
  background: rgba(11,108,192,.1); color: var(--color-primary);
  font-weight: 600; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero h1 span { color: var(--color-primary); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  background: #ddd;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; bottom: 1rem; left: 1rem;
  background: #fff; padding: .85rem 1rem; border-radius: var(--radius);
  box-shadow: var(--shadow-md); display: flex; align-items: center; gap: .75rem;
  font-weight: 600;
}
.hero-badge .dot { width: 10px; height: 10px; background: var(--color-accent); border-radius: 50%; box-shadow: 0 0 0 4px rgba(16,185,129,.2); }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } }

/* Quick links */
.quick-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 900px) { .quick-links { grid-template-columns: repeat(2, 1fr); } }
.quick-link {
  display: block; padding: 1.25rem; background: #fff;
  border: 1px solid var(--color-border); border-radius: var(--radius);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  color: var(--color-text);
}
.quick-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; color: var(--color-text); }
.quick-link .icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff; display: grid; place-items: center; font-weight: 700; margin-bottom: .75rem;
}
.quick-link strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.quick-link span { color: var(--color-muted); font-size: .9rem; }

/* Section heading */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: .25rem 0 0; }

/* Posts grid */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .posts-grid { grid-template-columns: 1fr; } }

.post-card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card .thumb { aspect-ratio: 16/10; background: var(--color-surface-2); overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .thumb img { transform: scale(1.04); }
.post-card .body { padding: 1.25rem 1.25rem 1.5rem; }
.post-card .meta { font-size: .8rem; color: var(--color-muted); display: flex; gap: .75rem; margin-bottom: .5rem; }
.post-card .meta .cat { color: var(--color-primary); font-weight: 600; }
.post-card h3 { font-size: 1.15rem; margin: .25rem 0 .5rem; }
.post-card h3 a { color: var(--color-text); }
.post-card h3 a:hover { color: var(--color-primary); }
.post-card .read-more { margin-top: .75rem; font-weight: 600; color: var(--color-primary); display: inline-flex; align-items: center; gap: .3rem; }
.post-card .read-more:after { content: "→"; transition: transform .2s ease; }
.post-card .read-more:hover:after { transform: translateX(3px); }

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--color-primary), #1e90d6);
  color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.cta h2 { color: #fff; margin: 0; }
.cta p { color: rgba(255,255,255,.85); margin: .25rem 0 0; }
.cta .btn { background: #fff; color: var(--color-primary) !important; }
.cta .btn:hover { background: #f1f5f9; }

/* Single / Page */
.entry-header { padding: 2rem 0 1rem; }
.entry-title { margin-bottom: .5rem; }
.entry-meta { color: var(--color-muted); font-size: .9rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.entry-content { font-size: 1.05rem; line-height: 1.75; }
.entry-content > * { margin-bottom: 1.1em; }
.entry-content h2, .entry-content h3 { margin-top: 2rem; }
.entry-content img, .entry-content figure { border-radius: var(--radius); overflow: hidden; }
.entry-content blockquote {
  border-left: 4px solid var(--color-primary); padding: .5rem 1.25rem;
  background: var(--color-surface); border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; color: var(--color-text);
}
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }

.content-area { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 3rem; padding: 3rem 0; }
.content-area.no-sidebar { grid-template-columns: 1fr; max-width: 820px; margin: 0 auto; }
@media (max-width: 900px) { .content-area { grid-template-columns: 1fr; } }

.widget { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.25rem; }
.widget-title { margin: 0 0 .75rem; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--color-primary); }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: .4rem 0; border-bottom: 1px solid var(--color-border); }
.widget li:last-child { border-bottom: none; }

/* Pagination */
.pagination { display: flex; gap: .35rem; justify-content: center; margin: 2rem 0; flex-wrap: wrap; }
.pagination .page-numbers {
  padding: .55rem .85rem; border-radius: 10px; border: 1px solid var(--color-border);
  background: #fff; color: var(--color-text); font-weight: 600;
}
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* Footer */
.site-footer { background: #0b1830; color: #cbd5e1; margin-top: 4rem; }
.site-footer a { color: #e2e8f0; }
.site-footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; padding: 3rem 0; }
@media (max-width: 900px) { .footer-top { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .footer-top { grid-template-columns: 1fr; } }
.site-footer .widget { background: transparent; border: none; padding: 0; }
.site-footer .widget-title { color: #fff; }
.site-footer .widget li { border-color: rgba(255,255,255,.08); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.25rem 0; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

/* Search */
.search-form { display: flex; gap: .5rem; }
.search-form input[type="search"] {
  flex: 1; padding: .7rem 1rem; border: 1px solid var(--color-border);
  border-radius: 999px; background: #fff; font: inherit;
}
.search-form button { padding: .7rem 1.1rem; border-radius: 999px; border: none; background: var(--color-primary); color: #fff; cursor: pointer; font-weight: 600; }

/* 404 */
.error-404 { text-align: center; padding: 6rem 0; }
.error-404 .big { font-size: clamp(5rem, 12vw, 8rem); font-weight: 800; color: var(--color-primary); line-height: 1; margin: 0; font-family: var(--font-display); }

/* Skip link */
.skip-link { position: absolute; left: -9999px; top: auto; }
.skip-link:focus { left: 1rem; top: 1rem; background: var(--color-primary); color: #fff; padding: .5rem 1rem; border-radius: 8px; z-index: 100; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
