/* Dobrzynka — motyw WordPress
   Arkusz główny. Pisany MOBILE-FIRST: bazowe reguły = telefon,
   media queries (min-width) rozszerzają układ na tablet/desktop. */

/* ============ TOKENY ============ */
:root {
  --green-50:#EAF3DE; --green-100:#C0DD97; --green-200:#97C459; --green-400:#639922;
  --green-600:#3B6D11; --green-800:#27500A; --green-900:#173404;
  --coral-50:#FAECE7; --coral-200:#F0997B; --coral-600:#993C1D; --coral-800:#712B13; --coral-900:#4A1B0C;
  --amber-50:#FAEEDA; --amber-200:#FAC775; --amber-600:#854F0B; --amber-800:#633806; --amber-900:#412402;
  --gray-50:#F1EFE8; --gray-100:#D3D1C7; --gray-600:#5F5E5A; --gray-900:#2C2C2A;
  --bg-page:#FBFAF6; --bg-card:#FFFFFF; --text-primary:#1A1A18; --text-secondary:#6B6A64; --border:#E5E2D8;
  --radius-sm:8px; --radius-md:12px; --radius-lg:16px; --radius-pill:999px;
  --shadow-sm:0 1px 2px rgba(23,52,4,.06); --shadow-md:0 4px 12px rgba(23,52,4,.08);
  --container-max:1120px; --container-pad:16px; --tr:.15s ease; --tr-fast:.12s ease;
}

/* ============ RESET ============ */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { -webkit-text-size-adjust:100%; }
body {
  font-family:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:var(--bg-page); color:var(--text-primary);
  line-height:1.6; font-size:16px; -webkit-font-smoothing:antialiased;
}
a { color:inherit; text-decoration:none; }
button { font-family:inherit; cursor:pointer; border:none; background:none; }
ul { list-style:none; }
img { max-width:100%; height:auto; display:block; }
:focus-visible { outline:2px solid var(--green-600); outline-offset:2px; border-radius:4px; }

/* ============ LAYOUT ============ */
.container { max-width:var(--container-max); margin:0 auto; padding:0 var(--container-pad); }
.section { padding:32px 0; }
.section-title { font-size:13px; font-weight:600; color:var(--text-secondary); text-transform:uppercase; letter-spacing:.05em; margin-bottom:16px; }
.section-head { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:16px; }
.section-head h2 { font-size:19px; font-weight:600; color:var(--green-900); }

/* ============ PRZYCISKI ============ */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-size:15px; font-weight:500; padding:12px 22px; border-radius:var(--radius-sm);
  transition:transform var(--tr-fast), background var(--tr), border-color var(--tr);
  white-space:nowrap; min-height:44px; /* dotyk: min. 44px */
}
.btn:active { transform:scale(.97); }
.btn-primary { background:var(--green-600); color:#fff; }
.btn-primary:hover { background:var(--green-800); }
.btn-secondary { background:var(--bg-card); color:var(--green-800); border:1.5px solid var(--green-200); }
.btn-secondary:hover { background:var(--green-50); border-color:var(--green-400); }
.btn-outline-coral { background:var(--bg-card); color:var(--coral-800); border:1.5px solid var(--coral-200); }
.btn-outline-coral:hover { background:var(--coral-50); }
.btn-link { color:var(--green-600); font-weight:500; min-height:auto; padding:0; }
.btn-link:hover { color:var(--green-800); text-decoration:underline; }
.btn-block { width:100%; }
.btn-sm { padding:9px 16px; font-size:14px; min-height:40px; }

/* ============ KARTY ============ */
.card { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-lg); padding:20px; }

/* ============ TAGI ============ */
.tag { display:inline-block; font-size:11px; font-weight:500; padding:3px 10px; border-radius:6px; white-space:nowrap; }
.tag-important { background:var(--amber-200); color:var(--amber-900); }
.tag-notice    { background:var(--gray-100);  color:var(--gray-900); }
.tag-outage    { background:var(--coral-200); color:var(--coral-900); }

/* ============ TOPBAR ============ */
.topbar { background:var(--green-900); color:var(--green-50); font-size:13px; }
.topbar .container { display:flex; justify-content:space-between; align-items:center; gap:12px; padding-top:8px; padding-bottom:8px; flex-wrap:wrap; }
.topbar a { display:flex; align-items:center; gap:6px; }
.topbar .alert { color:var(--coral-200); font-weight:500; }
.topbar .tb-mail { display:none; } /* na telefonie tylko awarie */

/* ============ HEADER ============ */
.site-header { background:var(--bg-card); border-bottom:1px solid var(--border); position:sticky; top:0; z-index:50; }
.site-header .container { display:flex; align-items:center; justify-content:space-between; gap:16px; padding-top:12px; padding-bottom:12px; }
.brand { display:flex; align-items:center; gap:10px; font-weight:600; font-size:17px; color:var(--green-800); flex-shrink:0; }
.brand-mark { width:36px; height:36px; border-radius:9px; background:var(--green-600); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:600; font-size:16px; }
.brand img { max-height:38px; width:auto; }
.nav-main { display:none; }
.header-actions { display:flex; align-items:center; gap:10px; }
.menu-toggle { display:flex; width:44px; height:44px; align-items:center; justify-content:center; border-radius:var(--radius-sm); }
.menu-toggle:hover { background:var(--gray-50); }
.menu-toggle svg { width:24px; height:24px; }

/* mobilne menu wysuwane */
.mobile-nav { display:none; background:var(--bg-card); border-bottom:1px solid var(--border); }
.mobile-nav.open { display:block; }
.mobile-nav a { display:block; padding:14px var(--container-pad); font-size:16px; color:var(--text-primary); border-top:1px solid var(--border); }
.mobile-nav a:first-child { border-top:none; }
.mobile-nav a:hover, .mobile-nav a.current-menu-item { color:var(--green-800); background:var(--green-50); }

/* ============ HERO ============ */
.hero { background:var(--green-50); padding:36px 0 32px; text-align:center; }
.hero h1 { font-size:26px; font-weight:600; color:var(--green-900); letter-spacing:-.01em; margin-bottom:10px; line-height:1.2; }
.hero .lead { font-size:15px; color:var(--green-800); max-width:480px; margin:0 auto 22px; }
.hero-media { margin:0 auto 22px; max-width:560px; border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-md); }
.hero-actions { display:flex; flex-direction:column; gap:10px; }
.hero-actions .btn { width:100%; }
.hero-stats { display:grid; grid-template-columns:1fr 1fr; gap:18px 16px; margin-top:32px; }
.hero-stat .num { font-size:24px; font-weight:600; color:var(--green-900); display:block; }
.hero-stat .label { font-size:11.5px; color:var(--green-600); text-transform:uppercase; letter-spacing:.04em; }

/* ============ DWIE KOLUMNY: AKTUALNOŚCI + KAFLE ============ */
.two-col { display:flex; flex-direction:column; gap:18px; }

/* lista aktualności (kompaktowa, strona główna) */
.news-compact-item { display:flex; gap:12px; padding:14px 0; border-bottom:1px solid var(--border); }
.news-compact-item:last-child { border-bottom:none; padding-bottom:0; }
.news-compact-item:first-child { padding-top:0; }
.news-compact-item .meta { flex:1; }
.news-compact-item .meta .title { font-size:14px; font-weight:500; color:var(--green-900); margin:6px 0 2px; }
.news-compact-item .meta .date { font-size:12px; color:var(--text-secondary); }

/* kafle 2×2 */
.home-tiles { display:grid; grid-template-columns:1fr 1fr; grid-auto-rows:1fr; gap:12px; }
.tile { border-radius:var(--radius-lg); padding:16px; display:flex; flex-direction:column; transition:transform var(--tr), box-shadow var(--tr); }
.tile-action { background:var(--coral-50); }
.tile-action:hover { transform:translateY(-2px); box-shadow:var(--shadow-md); }
.tile-status { background:var(--green-50); }
.tile .icon { width:40px; height:40px; max-width:120px; max-height:120px; margin-bottom:10px; }
.tile .icon svg { width:100%; height:100%; }
.tile-action .icon { color:var(--coral-600); }
.tile-status .icon { color:var(--green-600); }
.tile .t-title { font-weight:600; font-size:15px; margin-bottom:2px; }
.tile-action .t-title { color:var(--coral-800); }
.tile-status .t-title { color:var(--green-900); }
.tile .t-desc { font-size:12.5px; }
.tile-action .t-desc { color:var(--coral-600); }
.tile-status .t-desc { color:var(--green-600); }

/* ============ PASEK STATYSTYK ============ */
.stat-bar { display:grid; grid-template-columns:1fr 1fr; gap:16px 0; text-align:center; }
.stat-bar .stat { padding:6px 8px; }
.stat-bar .stat .num { font-size:22px; font-weight:600; color:var(--green-900); display:block; }
.stat-bar .stat .label { font-size:12px; color:var(--text-secondary); margin-top:2px; }

/* ============ AKTUALNOŚCI — PEŁNA LISTA ============ */
.news-page-head { margin-bottom:18px; }
.news-page-head h1 { font-size:22px; font-weight:600; color:var(--green-900); margin-bottom:14px; }
.filter-pills { display:flex; gap:8px; flex-wrap:wrap; }
.pill { font-size:13px; padding:8px 15px; border-radius:var(--radius-pill); border:1px solid var(--border); background:var(--bg-card); color:var(--text-secondary); transition:all var(--tr); min-height:38px; }
.pill:hover { border-color:var(--green-200); }
.pill.active { background:var(--green-600); color:#fff; border-color:var(--green-600); }
.pill.pill-amber.active { background:var(--amber-200); color:var(--amber-900); border-color:var(--amber-200); }
.pill.pill-coral.active { background:var(--coral-200); color:var(--coral-900); border-color:var(--coral-200); }

.news-item { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-lg); padding:16px 18px; margin-bottom:12px; display:flex; gap:14px; transition:box-shadow var(--tr); }
.news-item:hover { box-shadow:var(--shadow-sm); }
.news-item.is-important { border-left:4px solid var(--amber-200); }
.news-item.is-outage { background:var(--coral-50); border-color:var(--coral-200); }
.news-date { min-width:48px; text-align:center; flex-shrink:0; }
.news-date .day { font-size:20px; font-weight:600; color:var(--green-900); display:block; line-height:1.1; }
.news-date .month { font-size:11px; color:var(--text-secondary); text-transform:uppercase; }
.news-item .n-title { font-size:15px; font-weight:600; color:var(--green-900); margin:8px 0 5px; }
.news-item .n-title a:hover { color:var(--green-600); }
.news-item .n-body { font-size:13.5px; color:var(--text-secondary); line-height:1.55; }

/* ============ TREŚĆ WPISU / STRONY ============ */
.entry { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-lg); padding:22px; }
.entry h1.entry-title { font-size:24px; font-weight:600; color:var(--green-900); line-height:1.25; margin-bottom:8px; }
.entry .entry-meta { font-size:13px; color:var(--text-secondary); margin-bottom:18px; }
.entry-content { font-size:16px; color:var(--text-primary); }
.entry-content h2 { font-size:20px; color:var(--green-900); margin:24px 0 10px; }
.entry-content h3 { font-size:17px; color:var(--green-900); margin:20px 0 8px; }
.entry-content p { margin-bottom:16px; }
.entry-content a { color:var(--green-600); text-decoration:underline; }
.entry-content ul, .entry-content ol { margin:0 0 16px 22px; }
.entry-content ul { list-style:disc; }
.entry-content ol { list-style:decimal; }
.entry-content img { border-radius:var(--radius-md); margin:12px 0; }
.entry-content blockquote { border-left:4px solid var(--green-200); padding:4px 16px; color:var(--text-secondary); margin:16px 0; }

/* dokumenty do pobrania */
.doc-row { display:flex; align-items:center; justify-content:space-between; gap:12px; background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-sm); padding:14px 16px; margin-bottom:8px; }
.doc-row .doc-name { display:flex; align-items:center; gap:10px; font-size:14px; color:var(--green-900); font-weight:500; }
.doc-row .doc-name svg { width:18px; height:18px; color:var(--green-600); flex-shrink:0; }
.doc-row .doc-meta { font-size:12px; color:var(--text-secondary); flex-shrink:0; }

/* ============ STOPKA ============ */
.site-footer { background:var(--green-900); color:var(--green-100); padding:32px 0 20px; margin-top:24px; font-size:14px; }
.footer-cols { display:flex; flex-direction:column; gap:24px; padding-bottom:24px; }
.site-footer h4 { color:var(--green-50); font-size:13px; font-weight:600; margin-bottom:12px; text-transform:uppercase; letter-spacing:.04em; }
.site-footer ul li { margin-bottom:8px; }
.site-footer a:hover { color:#fff; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.1); padding-top:16px; display:flex; flex-direction:column; gap:6px; font-size:12px; color:var(--green-200); }

/* ============ TABLET (≥640px) ============ */
@media (min-width:640px) {
  :root { --container-pad:24px; }
  .section { padding:40px 0; }
  .hero { padding:48px 0 40px; }
  .hero h1 { font-size:30px; }
  .hero-actions { flex-direction:row; justify-content:center; }
  .hero-actions .btn { width:auto; }
  .hero-stats { grid-template-columns:repeat(4,1fr); gap:24px; }
  .stat-bar { grid-template-columns:repeat(4,1fr); }
  .stat-bar .stat { border-right:1px solid var(--border); }
  .stat-bar .stat:last-child { border-right:none; }
  .topbar .tb-mail { display:flex; }
  .filter-pills { gap:8px; }
  .footer-cols { flex-direction:row; justify-content:space-between; }
  .footer-bottom { flex-direction:row; justify-content:space-between; }
  .news-page-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px; }
  .news-page-head h1 { margin-bottom:0; }
}

/* ============ DESKTOP (≥900px) ============ */
@media (min-width:900px) {
  .section { padding:48px 0; }
  .hero { padding:64px 0 56px; }
  .hero h1 { font-size:34px; }
  .nav-main { display:flex; gap:28px; font-size:14px; color:var(--text-secondary); }
  .nav-main a:hover { color:var(--green-600); }
  .nav-main a.current-menu-item { color:var(--green-800); font-weight:500; }
  .menu-toggle { display:none; }
  .mobile-nav { display:none !important; }
  .two-col { display:grid; grid-template-columns:1.6fr 1fr; align-items:start; gap:20px; }
  .home-tiles { gap:16px; }
  .tile { padding:18px; }
}

@media (prefers-reduced-motion:reduce) {
  * { transition:none !important; animation:none !important; }
}
