/*
Theme Name: Bezpieczny Ratownik
Theme URI: https://fundacjabezpiecznyratownik.pl/
Author: TS Solutions
Description: Jednostronicowy motyw dla fundacji i organizacji pozarzadowych. Sekcje: hero, o nas, zakres dzialan, metoda, odbiorcy, projekty, galeria, wsparcie, FAQ i kontakt. Dane kontaktowe i rejestrowe edytujesz w Wyglad > Dostosuj > Dane fundacji.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bezpieczny-ratownik
Tags: one-page, nonprofit, custom-logo, custom-menu, translation-ready, accessibility-ready
*/
/* ==========================================================================
   FUNDACJA BEZPIECZNY RATOWNIK — arkusz stylow
   --------------------------------------------------------------------------
   Uwaga dla wdrozenia w Elementorze:
   - uklad opiera sie WYLACZNIE na flexboksie (zero CSS grid),
   - kazda sekcja = jeden Container, kazdy .row = Container w trybie flex row,
   - .col-2 / .col-3 / .col-4 = szerokosci kolumn ustawiane w Elementorze w %,
   - .card / .iconbox = widget Icon Box, .faq = widget Accordion,
   - odstepy sekcji = padding Containera, przerwy miedzy kolumnami = gap.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENY MARKI
   -------------------------------------------------------------------------- */
:root {
  --navy:        #12335C;   /* Granat Ratunkowy   */
  --navy-deep:   #0B1F3A;   /* Granat Nocny       */
  --blue:        #1A5FB4;   /* Blekit Sygnalowy   */
  --blue-soft:   #E8F0FB;
  --red:         #D81E13;   /* Czerwien Ratunkowa */
  --red-dark:    #B01710;
  --green:       #0E8A6A;   /* Zielen Zycia       */
  --amber:       #F0A202;   /* Bursztyn           */

  --bg:          #F7F9FC;   /* Biel Kliniczna     */
  --white:       #FFFFFF;
  --line:        #DCE4EF;   /* Stal Jasna         */
  --text:        #243044;   /* Grafit             */
  --muted:       #5B6B85;   /* Stal               */

  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body:    'Inter', -apple-system, 'Segoe UI', sans-serif;

  --container: 1200px;
  --radius: 4px;
  --shadow-sm: 0 2px 10px rgba(11, 31, 58, .06);
  --shadow-md: 0 14px 40px rgba(11, 31, 58, .12);
  --header-h: 84px;
}

/* --------------------------------------------------------------------------
   2. RESET I PODSTAWY
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--navy); }

h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--navy); }

h1, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: .96;
  letter-spacing: .012em;
}

h1 { font-size: clamp(2.75rem, 6.4vw, 5.4rem); }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.5rem); }

h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.28rem;
  line-height: 1.35;
  letter-spacing: -.01em;
}

h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.02rem;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--navy); color: #fff; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   3. UKLAD
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: clamp(72px, 8.5vw, 124px) 0; }
.section--tight { padding: clamp(52px, 5vw, 74px) 0; }
.section--bg    { background: var(--bg); }
.section--navy  { background: var(--navy); color: rgba(255,255,255,.86); }
.section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }

/* Kotwice one-page: naglowek jest sticky, wiec sekcja musi sie odsunac */
section[id] { scroll-margin-top: var(--header-h); }

/* Wiersze — w Elementorze: Container flex + wrap + gap */
.row {
  --gap: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
}
.row--wide  { --gap: 40px; }
.row--align { align-items: center; }

/* Podstawa kolumny pomniejszona o pelny gap — dzieki temu zmiana --gap
   nigdy nie powoduje przypadkowego zawijania kolumn. */
.col-2 { flex: 1 1 calc(50% - var(--gap));     min-width: 288px; }
.col-3 { flex: 1 1 calc(33.333% - var(--gap)); min-width: 262px; }
.col-4 { flex: 1 1 calc(25% - var(--gap));     min-width: 210px; }

/* --------------------------------------------------------------------------
   4. ELEMENTY TYPOGRAFICZNE
   -------------------------------------------------------------------------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 20px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 3px;
  background: var(--red);
  flex: none;
}
.section--navy .eyebrow { color: #8FBBEE; }

.lead {
  font-size: 1.16rem;
  line-height: 1.68;
  color: var(--muted);
  max-width: 66ch;
}
.section--navy .lead { color: rgba(255,255,255,.8); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 4.5vw, 66px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }

/* Znacznik danych do uzupelnienia przez Fundacje */
.todo {
  display: inline-block;
  padding: 1px 9px;
  border: 1px dashed var(--amber);
  border-radius: 3px;
  background: rgba(240, 162, 2, .1);
  color: #8A5C00;
  font-size: .84em;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
}
.section--navy .todo,
.site-footer .todo { color: #FFD98A; background: rgba(240,162,2,.14); }

/* --------------------------------------------------------------------------
   5. PRZYCISKI
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .84rem;
  letter-spacing: .085em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  transition: transform .18s ease, background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--red     { background: var(--red);  color: #fff; border-color: var(--red); box-shadow: 0 6px 20px rgba(216,30,19,.28); }
.btn--red:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }

.btn--navy    { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--navy:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }

.btn--ghost   { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }

.btn--outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--outline:hover { border-color: var(--navy); color: var(--navy); }

.btn--sm { padding: 12px 22px; font-size: .78rem; }

/* Link ze strzalka */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: .86rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue);
}
.arrow-link svg { transition: transform .2s ease; }
.arrow-link:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   6. NAGLOWEK STRONY
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease, height .3s ease;
}
.site-header.is-stuck {
  height: 72px;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.brand { display: flex; align-items: center; gap: 14px; flex: none; }
.brand img { height: 56px; width: auto; transition: height .3s ease; }
.site-header.is-stuck .brand img { height: 48px; }

.brand-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  color: #fff;
  transition: color .3s ease;
}
.brand-text b { font-size: 1.32rem; letter-spacing: .015em; }
.brand-text span {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .6rem;
  letter-spacing: .2em;
  opacity: .8;
  margin-top: 4px;
}
.site-header.is-stuck .brand-text { color: var(--navy); }

.nav-list { display: flex; align-items: center; gap: 30px; }
/* przycisk CTA wewnatrz listy sluzy tylko menu mobilnemu */
.nav-list .nav-cta { display: none; }
.nav-list a {
  position: relative;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .075em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  padding: 6px 0;
  transition: color .25s ease;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width .25s ease;
}
.nav-list a:hover::after,
.nav-list a.is-active::after { width: 100%; }
.site-header.is-stuck .nav-list a { color: var(--navy); }

.header-cta { flex: none; }

/* Hamburger */
.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: #fff;
  transition: transform .3s ease, opacity .2s ease, background-color .3s ease;
}
.site-header.is-stuck .nav-toggle { border-color: var(--line); }
.site-header.is-stuck .nav-toggle span { background: var(--navy); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 56px) 0 64px;
  background: var(--navy-deep) center/cover no-repeat;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(11,31,58,.94) 0%, rgba(11,31,58,.86) 42%, rgba(18,51,92,.60) 100%);
}
.hero .container { position: relative; z-index: 2; }

.hero-content { max-width: 830px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  padding: 9px 18px 9px 14px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 100px;
  background: rgba(255,255,255,.07);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
}
.hero-eyebrow i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(216,30,19,.28);
  flex: none;
}

.hero h1 { color: #fff; margin-bottom: 26px; }
.hero h1 em { font-style: normal; color: #7FB2EC; }

.hero-lead {
  max-width: 60ch;
  margin-bottom: 38px;
  font-size: clamp(1.05rem, 1.5vw, 1.24rem);
  line-height: 1.66;
  color: rgba(255,255,255,.85);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 52px; }

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 26px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.16);
  font-weight: 600;
  font-size: .76rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
}
.hero-tags li { display: flex; align-items: center; gap: 10px; }
.hero-tags li::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--red);
  transform: rotate(45deg);
  flex: none;
}

/* --------------------------------------------------------------------------
   8. PASEK FAKTOW
   -------------------------------------------------------------------------- */
.facts { background: var(--white); border-bottom: 1px solid var(--line); }
.facts .row { gap: 0; }

.fact {
  flex: 1 1 25%;
  min-width: 190px;
  padding: 38px 30px;
  border-left: 1px solid var(--line);
}
.fact:first-child { border-left: 0; padding-left: 0; }

.fact-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 4.4vw, 3.7rem);
  line-height: 1;
  letter-spacing: .01em;
  color: var(--navy);
  margin-bottom: 10px;
}
.fact-num.is-red { color: var(--red); }
.fact-label {
  font-size: .93rem;
  line-height: 1.5;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   9. KARTY I ICON BOXY
   -------------------------------------------------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  padding: 34px 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: #BFD3EC;
  box-shadow: var(--shadow-md);
}
.card p { color: var(--muted); font-size: .98rem; }

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px; height: 58px;
  margin-bottom: 22px;
  border-radius: var(--radius);
  background: var(--blue-soft);
  color: var(--blue);
  flex: none;
}
.card-icon svg { width: 27px; height: 27px; }
.card:hover .card-icon { background: var(--navy); color: #fff; }
.card-icon.is-red { background: rgba(216,30,19,.09); color: var(--red); }
.card:hover .card-icon.is-red { background: var(--red); color: #fff; }

/* wariant numerowany */
.card-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--line);
  margin-bottom: 14px;
  transition: color .25s ease;
}
.card:hover .card-num { color: var(--red); }

/* wariant "dla kogo" */
.audience {
  position: relative;
  overflow: hidden;
  padding-bottom: 30px;
}
.audience::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 4px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.audience:hover::before { transform: scaleX(1); }
.audience .arrow-link { margin-top: auto; padding-top: 18px; }

/* --------------------------------------------------------------------------
   10. SEKCJA METODY (granat)
   -------------------------------------------------------------------------- */
.method-media { position: relative; }
.method-media img { border-radius: var(--radius); }
.method-media::after {
  content: "";
  position: absolute;
  left: -18px; bottom: -18px;
  width: 130px; height: 130px;
  border: 3px solid var(--red);
  border-radius: var(--radius);
  z-index: -1;
}

.method-list { margin-top: 8px; }
.method-list li {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,.14);
}
.method-list li:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.method-list .m-ico {
  flex: none;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  background: rgba(255,255,255,.1);
  color: #8FBBEE;
}
.method-list .m-ico svg { width: 20px; height: 20px; }
.method-list h4 { margin-bottom: 4px; }
.method-list p { font-size: .96rem; color: rgba(255,255,255,.72); }

/* Blok "4 minuty" */
.minutes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  margin-top: 56px;
  padding: 34px 36px;
  border: 1px solid rgba(255,255,255,.18);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  background: rgba(255,255,255,.045);
}
.minutes b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.4rem, 6vw, 5rem);
  line-height: .9;
  color: #fff;
  flex: none;
}
.minutes div { flex: 1 1 320px; }
.minutes p { margin: 0; color: rgba(255,255,255,.82); }
.minutes small {
  display: block;
  margin-top: 10px;
  font-size: .78rem;
  letter-spacing: .05em;
  color: rgba(255,255,255,.5);
}

/* --------------------------------------------------------------------------
   11. PROJEKTY
   -------------------------------------------------------------------------- */
/* Wiersz projektu — Elementor: Container flex; wariant --flip = opcja "Reverse" */
.project-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 52px;
}
.project-row + .project-row { margin-top: clamp(56px, 6vw, 88px); }
.project-row--flip { flex-direction: row-reverse; }

.project-row .p-media {
  position: relative;
  flex: 1 1 44%;
  min-width: 300px;
  align-self: stretch;
  min-height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
}
.project-row .p-media > img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.project-row:hover .p-media > img:first-child { transform: scale(1.04); }

.project-row .p-body { flex: 1 1 46%; min-width: 300px; }
.project-row .p-body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  line-height: 1;
  letter-spacing: .012em;
  margin-bottom: 16px;
}
.project-row .p-body p { color: var(--muted); font-size: 1rem; }

/* Lista bloków szkoleniowych — Elementor: widget Icon List */
.feature-list { margin: 26px 0; }
.feature-list li {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.feature-list li:last-child { border-bottom: 1px solid var(--line); }
.feature-list .f-ico {
  flex: none;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  background: rgba(216,30,19,.09);
  color: var(--red);
}
.feature-list .f-ico svg { width: 20px; height: 20px; }
.feature-list h4 { margin-bottom: 3px; color: var(--navy); }
.feature-list p { font-size: .95rem; }

.project-badge {
  position: absolute;
  left: 18px; top: 18px;
  max-width: calc(100% - 36px);
  padding: 8px 14px;
  border-radius: 3px;
  background: rgba(11,31,58,.9);
  color: #fff;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.4;
}
/* Znak grantodawcy — biala plakietka w rogu zdjecia projektu.
   Selektor musi bic ".project-row .p-media img" (rozciaganie tla na 100%/cover). */
.project-row .p-media img.project-grant-logo {
  position: absolute;
  right: 18px; bottom: 18px;
  left: auto; top: auto;
  height: 46px; width: auto;
  max-width: 45%;
  padding: 8px 10px;
  border-radius: 3px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 4px 14px rgba(11,31,58,.28);
  transition: none;
}

.project-row .p-media img.project-grant-belka {
  position: absolute;
  left: 18px; right: 18px; bottom: 18px; top: auto;
  width: calc(100% - 36px);
  height: auto;
  padding: 8px 12px;
  border-radius: 3px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 4px 14px rgba(11,31,58,.28);
  transition: none;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
}
.chip {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.chip--green { border-color: rgba(14,138,106,.35); color: var(--green); background: rgba(14,138,106,.07); }

/* Lista planu */
.plan-list { margin-top: 12px; }
.plan-list li {
  display: flex;
  gap: 22px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.plan-list li:first-child { border-top: 1px solid var(--line); }
.plan-list .p-num {
  flex: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1.2;
  color: var(--red);
  min-width: 42px;
}
.plan-list h4 { margin-bottom: 3px; }
.plan-list p { font-size: .96rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   12. GALERIA
   -------------------------------------------------------------------------- */
.gallery { display: flex; flex-wrap: wrap; gap: 18px; }
.gallery figure {
  flex: 1 1 calc(33.333% - 18px);
  min-width: 240px;
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 30px 18px 14px;
  background: linear-gradient(to top, rgba(11,31,58,.9), transparent);
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
}

.note {
  margin-top: 26px;
  padding: 16px 20px;
  border-left: 3px solid var(--amber);
  background: rgba(240,162,2,.08);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .92rem;
  color: #6B4A00;
}

/* Minimalna atrybucja wymagana licencja CC BY-SA — nie usuwac bez podmiany zdjec */
.photo-credit {
  margin-top: 12px;
  text-align: right;
  font-size: .74rem;
  color: var(--muted);
}
.photo-credit a { color: inherit; text-decoration: underline; }

/* --------------------------------------------------------------------------
   13. WSPARCIE
   -------------------------------------------------------------------------- */
.support-card {
  display: flex;
  flex-direction: column;
  padding: 34px 30px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  background: rgba(255,255,255,.05);
  transition: background-color .25s ease, transform .25s ease, border-color .25s ease;
}
.support-card:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.34); transform: translateY(-5px); }
.support-card p { color: rgba(255,255,255,.76); font-size: .98rem; }
.support-card .btn { margin-top: auto; align-self: flex-start; }
.support-card .card-icon { background: rgba(255,255,255,.1); color: #fff; }

.bank {
  margin: 18px 0 24px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: rgba(11,31,58,.5);
  border: 1px dashed rgba(255,255,255,.28);
  font-size: .92rem;
  line-height: 1.75;
  color: #fff;
}
.bank strong { display: block; font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 4px; font-weight: 600; }

.legal-note {
  margin-top: 40px;
  padding: 20px 24px;
  border-left: 3px solid rgba(255,255,255,.3);
  font-size: .9rem;
  color: rgba(255,255,255,.62);
}

/* --------------------------------------------------------------------------
   14. FAQ (Accordion)
   -------------------------------------------------------------------------- */
.faq { max-width: 880px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); background: transparent; }
.faq-item:first-child { border-top: 1px solid var(--line); }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 26px 4px;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.06rem;
  line-height: 1.45;
  color: var(--navy);
  transition: color .2s ease;
}
.faq-q:hover { color: var(--blue); }
.faq-icon {
  position: relative;
  flex: none;
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background-color .25s ease, border-color .25s ease, transform .25s ease;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  background: var(--navy);
  transform: translate(-50%, -50%);
  transition: opacity .25s ease, background-color .25s ease;
}
.faq-icon::before { width: 13px; height: 2px; }
.faq-icon::after  { width: 2px; height: 13px; }
.faq-q[aria-expanded="true"] .faq-icon { background: var(--red); border-color: var(--red); transform: rotate(90deg); }
.faq-q[aria-expanded="true"] .faq-icon::before,
.faq-q[aria-expanded="true"] .faq-icon::after { background: #fff; }
.faq-q[aria-expanded="true"] .faq-icon::after { opacity: 0; }

.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s ease;
}
.faq-a-inner { padding: 0 60px 28px 4px; color: var(--muted); font-size: 1rem; }

/* --------------------------------------------------------------------------
   15. KONTAKT
   -------------------------------------------------------------------------- */
.form-row { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 18px; }
.field { flex: 1 1 240px; display: flex; flex-direction: column; }
.field--full { flex: 1 1 100%; }

.field label {
  margin-bottom: 8px;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--navy);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 148px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,95,180,.14);
}

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 6px 0 22px;
  font-size: .86rem;
  line-height: 1.6;
  color: var(--muted);
}
.consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--blue); }

.form-status {
  display: none;
  margin-top: 18px;
  padding: 14px 18px;
  border-left: 3px solid var(--blue);
  background: var(--blue-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .94rem;
  color: var(--navy);
}
.form-status.is-visible { display: block; }

.contact-panel {
  padding: 36px 34px;
  background: var(--navy);
  border-radius: var(--radius);
  color: rgba(255,255,255,.82);
}
.contact-panel h3 { color: #fff; }
.contact-list li {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,.13);
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list .c-ico {
  flex: none;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  background: rgba(255,255,255,.1);
  color: #8FBBEE;
}
.contact-list .c-ico svg { width: 18px; height: 18px; }
.contact-list strong {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 3px;
}
.contact-list a { color: #fff; }
.contact-list a:hover { color: #8FBBEE; }

/* --------------------------------------------------------------------------
   16. STOPKA
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,.62);
  padding: clamp(56px, 6vw, 84px) 0 34px;
  font-size: .93rem;
}
.site-footer h4 {
  color: #fff;
  font-size: .76rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.footer-brand img {
  height: 66px; width: auto;
  padding: 6px;
  background: #fff;
  border-radius: 50%;
}
.footer-brand b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.28rem;
  text-transform: uppercase;
  line-height: 1.05;
  color: #fff;
}
.footer-links li { margin-bottom: 11px; }
.footer-legal li { margin-bottom: 9px; }
.footer-legal strong { color: rgba(255,255,255,.9); font-weight: 600; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 52px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .84rem;
  color: rgba(255,255,255,.45);
}
.social { display: flex; gap: 10px; }
.social a {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  color: rgba(255,255,255,.75);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.social a:hover { background: #fff; color: var(--navy-deep); border-color: #fff; }
.social svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   17. DOSTEPNOSC / POMOCNICZE
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 14px 22px;
  background: var(--red);
  color: #fff;
  font-weight: 600;
}
.skip-link:focus { left: 16px; top: 16px; color: #fff; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Wejscie sekcji — w Elementorze odpowiednik: Motion Effects > Entrance Animation */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   18. RESPONSYWNOSC
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .col-4 { flex: 1 1 calc(50% - var(--gap)); }
  .gallery figure { flex: 1 1 calc(50% - 18px); }
  .fact { flex: 1 1 50%; padding: 30px 24px; }
  .fact:nth-child(1), .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact:nth-child(3), .fact:nth-child(4) { border-top: 1px solid var(--line); }
}

@media (max-width: 900px) {
  :root { --header-h: 76px; }

  .nav-toggle { display: flex; }
  .header-cta { display: none; }

  .site-nav {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 100px 24px 40px;
    background: var(--navy-deep);
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    overflow-y: auto;
  }
  .site-nav.is-open { transform: translateX(0); }

  .nav-list {
    flex-direction: column;
    gap: 4px;
    width: 100%;
    max-width: 420px;
  }
  .nav-list li { width: 100%; }
  .nav-list a {
    display: block;
    width: 100%;
    padding: 17px 4px;
    border-bottom: 1px solid rgba(255,255,255,.12);
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: #fff;
    text-align: center;
  }
  .site-header.is-stuck .nav-list a { color: #fff; }
  .nav-list a::after { display: none; }
  .nav-list .nav-cta { display: block; margin-top: 26px; border-bottom: 0; }
  .nav-list .nav-cta a { border-bottom: 0; font-family: var(--font-body); font-size: .84rem; }

  body.nav-open { overflow: hidden; }

  .col-3, .col-2 { flex: 1 1 100%; }
  .project-row, .project-row--flip { flex-direction: column; gap: 30px; }
  .project-row .p-media { min-height: 240px; width: 100%; }
  .method-media { order: -1; }
  .method-media::after { display: none; }
  .faq-a-inner { padding-right: 12px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .brand-text b { font-size: 1.1rem; }
  .brand-text span { display: none; }
  .brand img { height: 46px; }
  .site-header.is-stuck .brand img { height: 42px; }
  .hero { min-height: auto; padding: calc(var(--header-h) + 64px) 0 72px; }
  .hero-actions .btn { width: 100%; }
  .col-4 { flex: 1 1 100%; }
  .gallery figure { flex: 1 1 100%; }
  .fact { flex: 1 1 100%; border-left: 0; padding: 24px 0; border-top: 1px solid var(--line); }
  .fact:first-child { border-top: 0; padding-top: 0; }
  .card, .project-body, .support-card, .contact-panel { padding-left: 24px; padding-right: 24px; }
  .minutes { padding: 26px 22px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .nav-toggle, .hero-actions, .site-footer .social { display: none; }
  .hero::after { display: none; }
  body { color: #000; }
}
