/*
Theme Name: BWDG
Theme URI: https://bwdg.pl/
Author: BWDG
Description: Motyw firmowy Biura Wsparcia Działalności Gospodarczej (Radom). Kolorystyka z palety logo, jasny i ciemny motyw, bez zewnętrznych zależności.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: bwdg
*/

/* =====================================================================
   BWDG – arkusz stylów
   Paleta z logo: zieleń główna, jasna zieleń, brąz firmowy.
   Czcionka: Tahoma (systemowa), zamienniki Verdana / Segoe UI.
   ===================================================================== */

/* ===== TOKENY: JASNY MOTYW ===== */
:root {
  /* paleta firmowa */
  --green: #348c16;        /* zieleń główna – przyciski, linki, aktywne */
  --green-light: #58c91a;  /* jasna zieleń – akcenty, ikony */
  --brown: #963f0c;        /* brąz firmowy – nagłówki, detale */
  --cream: #faf8f4;        /* kremowa biel – tło */
  --mist: #f2f5f1;         /* jasna szarość – sekcje, karty */
  --graphite: #26332a;     /* grafit – teksty */

  --bg: var(--cream);
  --bg-soft: var(--mist);
  --surface: #ffffff;
  --surface-2: var(--mist);
  --ink: var(--graphite);
  --heading: var(--brown);
  --text: #3a4a3e;
  --muted: #5d6b60;
  --line: #e4e9e2;
  --line-2: #d3dbd0;

  --brand: var(--green);
  --brand-600: #2b7612;
  --brand-fg: #2b7612;           /* zieleń dla drobnego tekstu (kontrast AA) */
  --brand-soft: rgba(52, 140, 22, 0.09);
  --brand-ring: rgba(52, 140, 22, 0.25);
  --accent: var(--green-light);
  --accent-2: var(--brown);
  --accent-2-soft: rgba(150, 63, 12, 0.08);

  --contrast-bg: #1c2620;
  --contrast-text: #c7d2c8;

  --shadow-sm: 0 1px 2px rgba(38, 51, 42, 0.06);
  --shadow-md: 0 8px 24px -8px rgba(38, 51, 42, 0.14);
  --shadow-lg: 0 24px 48px -16px rgba(38, 51, 42, 0.2);

  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 76px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);

  color-scheme: light;
}

/* ===== TOKENY: CIEMNY MOTYW ===== */
html.dark {
  --bg: #0f1511;
  --bg-soft: #131a15;
  --surface: #18211b;
  --surface-2: #1e2922;
  --ink: #eef3ec;
  --heading: #e8955c;
  --text: #c9d3c9;
  --muted: #9aa89c;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);

  --brand-fg: #7bd94a;
  --brand-soft: rgba(88, 201, 26, 0.1);
  --brand-ring: rgba(88, 201, 26, 0.3);
  --accent-2: #e8955c;
  --accent-2-soft: rgba(232, 149, 92, 0.1);

  --contrast-bg: #0a0f0c;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px -8px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 48px -16px rgba(0, 0, 0, 0.6);

  color-scheme: dark;
}

/* ===== BAZA ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: Tahoma, Verdana, "Segoe UI", Geneva, "DejaVu Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .3s, color .3s;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--brand-fg); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; letter-spacing: -0.01em; font-weight: 700; }
h1, h2 { color: var(--heading); }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--green); color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.screen-reader-text, .sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ===== PRZYCISKI ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font: inherit; font-weight: 700; font-size: .95rem;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn svg { flex-shrink: 0; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px var(--brand-ring); }
.btn-primary:hover { background: var(--brand-600); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-fg); }
.btn-light { background: #fff; color: var(--graphite); }
.btn-light:hover { background: var(--mist); }
.btn-sm { padding: 9px 16px; font-size: .88rem; }
.btn-block { width: 100%; }

/* ===== NAGŁÓWEK ===== */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.nav-inner {
  max-width: var(--container); height: 100%; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 52px; width: auto; max-width: none; }
html.dark .logo img, html.dark .footer-logo img { filter: brightness(1.18) saturate(1.1); }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links ul { list-style: none; }
.nav-links > ul { display: flex; align-items: center; gap: 4px; }
.nav-links li { position: relative; }
.nav-links a {
  display: flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 10px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem;
  transition: color .2s, background-color .2s;
}
.nav-links a:hover, .nav-links .current-menu-item > a, .nav-links .current-menu-ancestor > a, .nav-links .current_page_parent > a {
  color: var(--brand-fg); background: var(--brand-soft);
}
.nav-links .menu-item-has-children > a::after {
  content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); margin-left: 4px; opacity: .6;
}
.nav-links .sub-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 300px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.nav-links .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav-links li:hover > .sub-menu, .nav-links li:focus-within > .sub-menu, .nav-links li.open > .sub-menu {
  opacity: 1; visibility: visible; transform: none;
}
.nav-links .sub-menu a { font-weight: 600; font-size: .92rem; padding: 10px 12px; }
.nav-links .sub-menu .menu-highlight > a { color: var(--brown); }
html.dark .nav-links .sub-menu .menu-highlight > a { color: var(--accent-2); }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.theme-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent;
  color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: border-color .2s, color .2s;
}
.theme-btn:hover { border-color: var(--brand); color: var(--brand-fg); }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .icon-moon, html.dark .theme-btn .icon-sun { display: none; }
html.dark .theme-btn .icon-moon { display: block; }
.hbg { display: none; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 12px; background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.hbg span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-open .hbg span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .hbg span:nth-child(2) { opacity: 0; }
.nav-open .hbg span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  .hbg { display: flex; }
  .nav-cta .btn { display: none; }
  .nav-cta { margin-left: auto; }
  .nav-links {
    position: fixed; inset: var(--header-h) 0 auto 0; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    flex-direction: column; align-items: stretch; padding: 16px var(--gutter) 24px; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .admin-bar .nav-links { top: calc(var(--header-h) + 46px); }
  .nav-open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-links > ul { flex-direction: column; align-items: stretch; }
  .nav-links a { padding: 12px 14px; font-size: 1rem; }
  .nav-links .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0;
    padding: 0 0 0 14px; min-width: 0; background: transparent; display: none;
  }
  .nav-links li.open > .sub-menu { display: block; }
  .nav-links .nav-mobile-cta { display: flex; margin-top: 12px; }
}
@media (min-width: 1081px) { .nav-links .nav-mobile-cta { display: none; } }



/* ===== HERO (baner) ===== */
/* Baner 3:1 – kremowa część z lewej (ok. 40% szerokości) jest miejscem na tekst. */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(33.34vw, 680px); display: flex; align-items: center;
  padding: clamp(36px, 4vw, 64px) 0;
  background: #f8f4f0; /* kolor lewej części banera */
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.hero::before { /* delikatne rozjaśnienie pod tekstem, gdy treść jest wyższa niż baner */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(248, 244, 240, .94) 0%, rgba(248, 244, 240, .82) 34%, rgba(248, 244, 240, 0) 50%);
}
.hero::after { /* ciemny motyw: przyciemnienie kremowej części pod tekstem */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: linear-gradient(90deg, rgba(15, 21, 17, .96) 0%, rgba(15, 21, 17, .9) 36%, rgba(15, 21, 17, .2) 56%, transparent 66%);
}
html.dark .hero::before { display: none; }
html.dark .hero::after { opacity: 1; }
.hero-inner { width: 100%; max-width: none; padding-left: max(var(--gutter), 6vw); }
.hero-copy { max-width: min(540px, 38vw); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--brown); font-weight: 700; font-size: .85rem;
  box-shadow: var(--shadow-sm);
}
html.dark .eyebrow { color: var(--accent-2); }
.edot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-light); box-shadow: 0 0 0 4px rgba(88, 201, 26, .2); }
.hero h1 { font-size: clamp(1.9rem, 2.9vw, 2.9rem); margin: 18px 0 14px; }
.accent { color: var(--green); }
html.dark .accent { color: var(--green-light); }
.lead { font-size: clamp(1rem, 1.25vw, 1.12rem); color: var(--text); max-width: 620px; }
.hbtns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero .btn-ghost { background: rgba(255, 255, 255, .75); }
html.dark .hero .btn-ghost { background: transparent; }
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; color: var(--ink); font-weight: 700; font-size: .88rem; }
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust svg { color: var(--green); }
html.dark .hero-trust svg { color: var(--green-light); }

/* tablet / mały laptop / telefon: tekst na górze, cały baner pod spodem */
@media (max-width: 1200px) {
  .hero { flex-direction: column; align-items: stretch; min-height: 0; padding: 40px 0 0; background: var(--bg); }
  .hero::before, html.dark .hero::after { display: none; }
  .hero-inner { padding-left: var(--gutter); }
  .hero-copy { max-width: 640px; }
  .hero-media { position: static; display: block; margin-top: 32px; order: 2; }
  .hero-media img { height: auto; aspect-ratio: 16 / 9; object-position: 78% center; }
  .hero .btn-ghost { background: transparent; }
  .stats-wrap { margin-top: 20px; }
}

/* ===== IKONY W KAFELKACH ===== */
.ic {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  background: var(--brand-soft); color: var(--green);
}
html.dark .ic { color: var(--green-light); }
.ic-lg { width: 56px; height: 56px; border-radius: 16px; }
.ic-brown { background: var(--accent-2-soft); color: var(--brown); }
html.dark .ic-brown { color: var(--accent-2); }

/* ===== LICZBY ===== */
.stats-wrap { padding: 0 0 8px; margin-top: -8px; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-md); overflow: hidden;
}
.st { padding: 26px 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column-reverse; gap: 4px; }
.st:last-child { border-right: 0; }
.st dd { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 700; color: var(--green); letter-spacing: -.01em; line-height: 1; }
html.dark .st dd { color: var(--green-light); }
.st dt { color: var(--muted); font-weight: 600; font-size: .9rem; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .st:nth-child(2) { border-right: 0; }
  .st:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ===== SEKCJE ===== */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.stag {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brown); margin-bottom: 12px;
}
html.dark .stag { color: var(--accent-2); }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.inline-link { color: var(--brand-fg); font-weight: 700; }

/* ===== KARTY USŁUG ===== */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 20px; }
.svc-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: inherit; box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand-ring); }
.svc-card h3 { font-size: 1.2rem; }
.svc-card p { color: var(--muted); font-size: .96rem; flex: 1; }
.svc-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--brand-fg); font-size: .92rem; }
.svc-more svg { transition: transform .2s; }
.svc-card:hover .svc-more svg { transform: translateX(4px); }
.svc-badge {
  position: absolute; top: 20px; right: 20px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: var(--brown); padding: 4px 10px; border-radius: 999px;
}
.svc-card.featured { border-color: rgba(150, 63, 12, .35); background: linear-gradient(180deg, var(--accent-2-soft), var(--surface) 55%); }

/* ===== WYRÓŻNIENIE: CRYSTAL REPORTS ===== */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center;
}
.feature-copy h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 16px; }
.feature-copy p { color: var(--muted); margin-bottom: 14px; }
.checks { list-style: none; display: grid; gap: 12px; margin: 22px 0 28px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-weight: 600; }
.checks li svg { color: var(--green); margin-top: 3px; flex-shrink: 0; }
html.dark .checks li svg { color: var(--green-light); }
.report {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.report-top { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.report-top i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); display: block; }
.report-top span { margin-left: 8px; font-size: .82rem; font-weight: 700; color: var(--muted); }
.report-body { padding: 22px; }
.report-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.report-title strong { color: var(--heading); font-size: 1.05rem; }
.report-title small { color: var(--muted); font-weight: 600; }
.report table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.report th { text-align: left; color: var(--muted); font-weight: 700; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; padding: 8px 6px; border-bottom: 2px solid var(--line); }
.report td { padding: 9px 6px; border-bottom: 1px solid var(--line); color: var(--ink); }
.report td:last-child, .report th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.report .bar { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--green), var(--green-light)); display: block; }
.report tfoot td { font-weight: 700; border-bottom: 0; color: var(--brown); }
html.dark .report tfoot td { color: var(--accent-2); }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } }

/* ===== DLACZEGO MY / PROCES ===== */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.why h3 { font-size: 1.08rem; margin: 16px 0 8px; }
.why p { color: var(--muted); font-size: .94rem; }
@media (max-width: 1000px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li { position: relative; padding: 26px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); counter-increment: step; }
.steps li::before {
  content: counter(step, decimal-leading-zero); display: block; font-weight: 700; font-size: 1.6rem; letter-spacing: -.01em;
  color: var(--brown); margin-bottom: 10px;
}
html.dark .steps li::before { color: var(--accent-2); }
.steps h3 { font-size: 1.05rem; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: .93rem; }
@media (max-width: 1000px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ===== O NAS ===== */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.about-copy p { margin-bottom: 14px; }
.about-copy h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: .88rem; color: var(--ink); }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }

/* ===== AKTUALNOŚCI ===== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: inherit; transition: transform .25s, box-shadow .25s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.news-thumb-ph { aspect-ratio: 16/9; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-soft), var(--accent-2-soft)); color: var(--green); }
.news-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-body time { font-size: .82rem; font-weight: 700; color: var(--brown); }
html.dark .news-body time { color: var(--accent-2); }
.news-body h3 { font-size: 1.12rem; }
.news-body p { color: var(--muted); font-size: .94rem; }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr; } }

/* ===== CTA ===== */
.cta-band {
  position: relative; overflow: hidden; border-radius: 24px; padding: clamp(32px, 5vw, 56px);
  background: linear-gradient(120deg, #2b7612, var(--green) 55%, #4fae18);
  color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 8px; }
.cta-band p { color: rgba(255, 255, 255, .88); max-width: 620px; }
.cta-band .btns { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.cta-band .btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .1); }

/* ===== KONTAKT ===== */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.contact-info { display: grid; gap: 14px; }
.ci {
  display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: inherit;
}
a.ci:hover { border-color: var(--brand-ring); }
.ci small { display: block; color: var(--muted); font-weight: 600; font-size: .8rem; }
.ci strong { color: var(--ink); font-size: 1.02rem; }
.map-box {
  position: relative; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2);
  aspect-ratio: 16/10; display: grid; place-items: center; text-align: center; padding: 20px;
}
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-box > div { width: 100%; min-width: 0; }
.map-box { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 600px) { .map-box { aspect-ratio: auto; min-height: 280px; } }
.map-box p { color: var(--muted); font-size: .88rem; margin: 8px 0 14px; max-width: 360px; }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow-md); }
.form-card h3 { font-size: 1.35rem; margin-bottom: 6px; color: var(--heading); }
.form-card > p { color: var(--muted); margin-bottom: 22px; font-size: .95rem; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fgrid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .fgrid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; font-size: .88rem; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .97rem; color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line-2); border-radius: 12px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green); flex-shrink: 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 16px; border-radius: 12px; font-weight: 600; margin-bottom: 18px; font-size: .95rem; }
.notice-ok { background: var(--brand-soft); color: var(--brand-fg); border: 1px solid var(--brand-ring); }
.notice-err { background: var(--accent-2-soft); color: var(--brown); border: 1px solid rgba(150, 63, 12, .3); }
html.dark .notice-err { color: var(--accent-2); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

/* ===== PODSTRONY ===== */
.page-hero {
  padding: clamp(44px, 7vw, 84px) 0 clamp(36px, 5vw, 56px);
  background: radial-gradient(700px 360px at 90% 0%, rgba(88, 201, 26, 0.14), transparent 60%), var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin: 10px 0 12px; max-width: 900px; }
.page-hero .lead { max-width: 760px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; font-size: .85rem; font-weight: 600; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand-fg); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }

.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.page-layout.single { grid-template-columns: minmax(0, 820px); justify-content: center; }
@media (max-width: 960px) { .page-layout { grid-template-columns: 1fr; } }
.sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 18px; }
.side-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.side-box h3 { font-size: 1rem; margin-bottom: 12px; color: var(--heading); }
.side-nav { list-style: none; display: grid; gap: 2px; }
.side-nav a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .93rem; }
.side-nav a:hover, .side-nav a[aria-current] { background: var(--brand-soft); color: var(--brand-fg); }
.side-box.dark { background: var(--contrast-bg); color: var(--contrast-text); border-color: transparent; }
.side-box.dark h3 { color: #fff; }
.side-box.dark p { font-size: .92rem; margin-bottom: 14px; }
.side-box.dark a.tel { color: #fff; font-weight: 700; font-size: 1.15rem; text-decoration: none; display: block; margin-bottom: 14px; }

/* treść z edytora WordPress */
.prose { font-size: 1.04rem; color: var(--text); }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); margin-top: 1.8em; }
.prose h3 { font-size: 1.22rem; margin-top: 1.5em; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose ul li::marker { color: var(--green); }
.prose a { font-weight: 600; }
.prose strong { color: var(--ink); }
.prose blockquote { border-left: 4px solid var(--green-light); padding: 6px 0 6px 18px; color: var(--ink); font-weight: 600; }
.prose img { border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--surface-2); color: var(--ink); }
.prose .wp-block-button__link { background: var(--brand); color: #fff; border-radius: 999px; padding: 12px 22px; font-weight: 700; text-decoration: none; }
.prose .has-small-font-size, .prose .tm-note { font-size: .84rem; color: var(--muted); }
.prose .is-style-callout, .prose .callout {
  background: var(--bg-soft); border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: var(--radius-sm); padding: 18px 20px;
}

/* lista wpisów */
.post-list { display: grid; gap: 20px; }
.post-item { display: grid; grid-template-columns: 200px 1fr; gap: 22px; align-items: stretch; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.post-thumb { display: block; position: relative; min-height: 130px; overflow: hidden; background: var(--surface-2); }
.post-thumb img, .post-thumb .news-thumb-ph { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; aspect-ratio: auto; }
.post-thumb img { object-fit: contain; padding: 14px; background: #fff; }
html.dark .post-thumb img { background: var(--surface-2); }
.post-item .news-body { padding: 22px 22px 22px 0; }
@media (max-width: 640px) { .post-item { grid-template-columns: 1fr; gap: 0; } .post-thumb { min-height: 0; aspect-ratio: 21 / 9; } .post-item .news-body { padding: 20px 22px 22px; } }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 32px; }
.pagination .page-numbers { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; }
.pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ===== STOPKA ===== */
.site-footer { background: var(--contrast-bg); color: var(--contrast-text); padding: 64px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.footer-logo { display: inline-block; background: #fff; border-radius: 14px; padding: 10px 14px; margin-bottom: 16px; }
html.dark .footer-logo { background: #fff; }
html.dark .footer-logo img { filter: none; }
.footer-logo img { height: 46px; width: auto; max-width: none; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; letter-spacing: 0; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: var(--contrast-text); text-decoration: none; font-size: .93rem; }
.site-footer a:hover { color: var(--green-light); }
.site-footer p { font-size: .93rem; }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: #8e9c90;
}
.footer-bottom a { font-size: .82rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ===== 404 ===== */
.e404 { text-align: center; padding: clamp(80px, 12vw, 140px) 0; }
.e404 strong { display: block; font-size: clamp(4rem, 12vw, 7rem); font-weight: 700; color: var(--green); line-height: 1; letter-spacing: -.01em; }
.e404 p { color: var(--muted); margin: 14px 0 26px; }

/* ===== ANIMACJE WEJŚCIA ===== */
.js .r { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .r.in { opacity: 1; transform: none; }
.d1 { transition-delay: .06s !important; } .d2 { transition-delay: .12s !important; } .d3 { transition-delay: .18s !important; }
.d4 { transition-delay: .24s !important; } .d5 { transition-delay: .3s !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .r { opacity: 1; transform: none; transition: none; }
  .bars i { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ===== IKONY W MENU I STOPCE ===== */
.nav-links a svg { flex-shrink: 0; color: var(--green); opacity: .9; }
html.dark .nav-links a svg { color: var(--green-light); }
.nav-links .menu-highlight > a svg { color: var(--brown); }
html.dark .nav-links .menu-highlight > a svg { color: var(--accent-2); }
.nav-links .sub-menu a { gap: 10px; }
.nav-links .nav-mobile-cta a svg { color: #fff; }

.site-footer h4 { display: flex; align-items: center; gap: 8px; }
.site-footer h4 svg { color: var(--green-light); }
.f-list a, .f-row { display: flex; align-items: flex-start; gap: 10px; }
.f-list svg { flex-shrink: 0; margin-top: 3px; color: var(--green-light); opacity: .85; }
.site-footer p a { color: var(--green-light); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .15); color: #fff; }
.footer-social a:hover { border-color: var(--green-light); color: var(--green-light); }
.footer-bottom .f-tm { flex-basis: 100%; opacity: .75; }
