/* ARVYM IURIS — Redesign: Editorial Minimal | Mobile-first */

/* Czcionki hostowane lokalnie (fonts/) zamiast Google Fonts */
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/dm-sans-v17-latin_latin-ext-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/dm-sans-v17-latin_latin-ext-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/dm-sans-v17-latin_latin-ext-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'DM Serif Display';
  src: url('../fonts/dm-serif-display-v17-latin_latin-ext-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'DM Serif Display', Georgia, serif;

  --ink: #1a1a28;
  --ink-soft: #3a3a4a;
  --text: #2e2e3a;
  --text-muted: #65657a;
  --surface: #faf9f7;
  --surface-raised: #f3f2ef;
  --white: #ffffff;
  --card-bg: #ffffff; /* tło kart/sekcji (hero-tile, feature-card, footer itd.) — osobna zmienna od --white, bo --white jest też używane jako kolor TEKSTU na ciemnych przyciskach i nie może zmieniać się w trybie ciemnym */
  --border: #e8e7e3;
  --border-light: #f0efec;
  --accent: #96734a;
  --accent-hover: #7d5d36;
  --accent-light: #f5efe7;
  --warm: #c4724a;
  --warm-light: #f8ede7;
  --danger: #a0534b;

  --radius: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 3px rgba(26,26,40,0.04);
  --shadow: 0 2px 8px rgba(26,26,40,0.06);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── RESET & BASE ─── */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  line-height: 1.7;
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover { color: var(--accent); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); line-height: 1.2; }
h3 { font-size: 1.15rem; line-height: 1.35; }

.icon { flex-shrink: 0; }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }


/* ─── HEADER ─── */

.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(250,249,247,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.logo-text { position: relative; top: 1px; }

.nav { display: none; align-items: center; gap: 4px; }

.nav a {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 100px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
  letter-spacing: 0.01em;
}

.nav a:hover { color: var(--ink); background: var(--surface-raised); }
.nav a.active { color: var(--ink); font-weight: 500; }

.header-cta {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  padding: 8px 18px;
  border: 1px solid var(--ink);
  border-radius: 100px;
  transition: all 0.2s var(--ease);
  letter-spacing: 0.01em;
}

.header-cta:hover {
  background: var(--ink);
  color: var(--white);
}

.header-cta .icon { transition: transform 0.2s var(--ease); }
.header-cta:hover .icon { transform: translateX(3px); }

.mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--ink);
  transition: all 0.25s var(--ease);
}

.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(2px, 2px); }
.mobile-toggle.active span:nth-child(2) { transform: rotate(-45deg) translate(2px, -2px); }

.mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 8px 0 16px;
  z-index: 999;
}

.mobile-nav.open { display: block; }

.mobile-nav a {
  display: block;
  padding: 14px 24px;
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
  transition: color 0.15s var(--ease);
}

.mobile-nav a:hover { color: var(--ink); }
.mobile-nav a.active { color: var(--ink); font-weight: 500; }

.mobile-cta {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  margin: 8px 24px 0;
  padding: 12px 24px !important;
  background: var(--accent);
  color: var(--white) !important;
  border-radius: 100px;
  font-weight: 500 !important;
}


/* ─── HERO ─── */

.hero {
  padding: 140px 0 80px;
  position: relative;
}

.hero-compact {
  padding: 84px 0 20px;
}

/* Mobile + tablet only (do 1023px) — desktop bez zmian */
@media (max-width: 1023px) {
  .hero-compact--ofundacji {
    margin-bottom: -40px;
  }

  .hero-compact--jakpomagamy {
    margin-bottom: -30px;
  }

  .hero-compact--jakpomagamy .hero-links {
    margin-top: -40px;
    margin-bottom: 40px;
  }

  .hero-compact--kontakt {
    margin-bottom: -40px;
  }
}

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  margin-bottom: 24px;
  max-width: 680px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-image {
  display: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  align-self: center;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-image-placeholder {
  width: 100%;
  aspect-ratio: 3 / 2;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.hero-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hero-tile {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  transition: border-color 0.25s var(--ease);
}

.hero-tile:hover { border-color: var(--accent); }

.hero-tile-icon {
  color: var(--accent);
  margin-bottom: 12px;
}

.hero-tile h3,
.hero-tile-title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.35;
}

.hero-tile p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-top: 4px;
}

.hero-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-link {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.hero-link:hover {
  border-color: var(--accent);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.hero-link-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  background: var(--accent-light);
  color: var(--accent);
}

.hero-link-text { flex: 1; min-width: 0; }

.hero-link-text h3,
.hero-link-title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.3;
}

.hero-link-text p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 2px;
}

.hero-link .icon {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}

.hero-link:hover .icon {
  color: var(--accent);
  transform: translateX(3px);
}


/* ─── BUTTONS ─── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s var(--ease);
  letter-spacing: 0.01em;
}

.btn .icon { transition: transform 0.2s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }

.btn-primary {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.btn-primary:hover {
  background: var(--ink-soft);
  border-color: var(--ink-soft);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.btn-secondary {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.btn-secondary:hover {
  background: var(--ink-soft);
  color: var(--white);
}

.btn-text {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent);
  font-weight: 500;
  gap: 6px;
}

.btn-text:hover { color: var(--accent-hover); }

.btn-light {
  background: var(--card-bg);
  color: var(--ink);
  border-color: var(--border);
}

.btn-light:hover { border-color: var(--ink); }


/* ─── SECTIONS ─── */

.section { padding: 80px 0; }
.section-alt { background: var(--card-bg); }

.section-snug { padding-top: 40px; }

.section-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-head {
  max-width: 560px;
  margin-bottom: 56px;
}

.section-head.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-head h2 { margin-bottom: 14px; }

.section-head p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.section-rule {
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 16px;
}

.section-rule.centered { margin-left: auto; margin-right: auto; }


/* ─── GRIDS ─── */

.grid-2 { display: grid; gap: 24px; }
.grid-3 { display: grid; gap: 24px; }
.grid-4 { display: grid; gap: 20px; }


/* ─── FEATURE CARDS (mission, programs) ─── */

.feature-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card-bg);
  transition: border-color 0.25s var(--ease);
}

.feature-card:hover { border-color: var(--accent); }

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: var(--accent-light);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.feature-card h3 {
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--ink);
  font-size: 1.05rem;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}


/* ─── STATS ─── */

.stats {
  padding: 56px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.stat { text-align: center; }

.stat-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--ink);
  line-height: 1;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 8px;
  letter-spacing: 0.02em;
}


/* ─── PROGRAM CARDS (how we help overview) ─── */

.program-card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  border: 1px solid var(--border);
  transition: border-color 0.25s var(--ease);
}

.program-card:hover { border-color: var(--accent); }

.program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 1px;
  background: var(--accent);
  border-radius: 0 0 2px 2px;
}

.program-icon {
  color: var(--accent);
  margin-bottom: 16px;
}

.program-card h3 {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--ink);
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.program-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}


/* ─── BLOG CARDS ─── */

.blog-card {
  display: block;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.2s var(--ease);
}

.blog-card:hover { padding-left: 8px; }

.blog-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.blog-card h3 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.4;
}

.blog-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}


/* ─── CTA SECTION ─── */

.cta-section {
  padding: 80px 0;
  background: var(--ink);
  color: var(--white);
}

.cta-inner {
  max-width: 560px;
}

.cta-section .section-label { color: var(--accent); }
.cta-section .section-rule { background: var(--accent); }

.cta-section h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  margin-bottom: 32px;
  line-height: 1.75;
}

.cta-section .btn-primary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

.cta-section .btn-primary:hover {
  background: var(--surface);
  border-color: var(--surface);
  color: var(--ink);
}


/* ─── FOOTER ─── */

.footer {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}

.footer-top {
  display: grid;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo { margin-bottom: 16px; }

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 300px;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--ink);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 4px 0;
  transition: color 0.15s var(--ease);
}

.footer-col a:hover { color: var(--accent); }

.footer-col p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-col p strong {
  color: var(--ink);
  font-weight: 500;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--accent); }


/* ─── BREADCRUMBS ─── */

.breadcrumbs {
  padding: 20px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { color: var(--ink); }


/* ─── DETAIL PAGES (jak-pomagamy sections) ─── */

.detail-section { padding: 48px 0; }
.detail-section + .detail-section { border-top: 1px solid var(--border); }

.detail-grid {
  display: grid;
  gap: 40px;
  align-items: start;
}

.detail-content .program-icon { margin-bottom: 16px; }

.detail-content h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-bottom: 16px;
}

.detail-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 14px;
}

.detail-content strong { color: var(--ink); font-weight: 500; }

.detail-content ul {
  list-style: none;
  margin: 0 0 24px 0;
}

.detail-content ul li {
  position: relative;
  padding-left: 18px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.detail-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 1px;
  background: var(--accent);
}

.detail-aside {
  padding: 32px;
  background: var(--surface-raised);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.detail-aside h2,
.detail-aside h3 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 14px;
}

.detail-aside p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.detail-aside ul {
  list-style: none;
  margin: 0;
}

.detail-aside ul li {
  position: relative;
  padding-left: 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.detail-aside ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 1px;
  background: var(--accent);
}


/* ─── NOTE BOXES ─── */

.note-box {
  margin-top: 20px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--accent-light);
  border-left: 2px solid var(--accent);
}

.note-box.note-warning {
  background: var(--warm-light);
  border-left-color: var(--warm);
}

.note-box-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

.note-box-title .icon { color: var(--accent); }
.note-box.note-warning .note-box-title .icon { color: var(--warm); }

.note-box p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.data-table tr { border-bottom: 1px solid var(--border); }
.data-table tr:last-child { border-bottom: none; }

.data-table td {
  padding: 10px 0;
  vertical-align: top;
  line-height: 1.5;
}

.data-table td:first-child {
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  padding-right: 16px;
  width: 110px;
}

.data-table td:last-child {
  color: var(--text);
}


/* ─── PROCESS STEPS ─── */

.process-list {
  max-width: 640px;
  margin: 0 auto;
  counter-reset: step;
}

.process-step {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  counter-increment: step;
}

.process-step:last-child { border-bottom: none; }

.process-marker {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
}

.process-marker::after { content: counter(step); }

.process-body h3 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 6px;
}

.process-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}


/* ─── FORMS ─── */

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 16px;
}

.form-note a { text-decoration: underline; }


/* ─── CONTACT ─── */

.contact-grid { display: grid; gap: 40px; }

.contact-info h2,
.contact-info h3 {
  font-size: 1.2rem;
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-item-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item h3,
.contact-item h4 {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 2px;
}

.contact-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
}


/* ─── BLOG LIST ─── */

.blog-list { display: grid; gap: 24px; }

.blog-post {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
}

.blog-post h2 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.blog-post-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.blog-post p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.read-more {
  font-weight: 500;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
}

.read-more:hover { color: var(--accent-hover); }

/* Cały kafelek wpisu jest klikalny - link "spięty" na tytule (h2 > a)
   rozciąga się przez pseudo-element na cały obszar karty. To standardowy,
   dostępny wzorzec (tzw. "stretched link") - unika się w ten sposób
   nielegalnego zagnieżdżania <a> w <a> (tytuł + "czytaj więcej"). */
.blog-post--linked { position: relative; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.blog-post--linked:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.blog-post-stretched-link { color: inherit; text-decoration: none; }
.blog-post-stretched-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.blog-post--linked:hover .blog-post-stretched-link { color: var(--accent); }
.blog-post--linked:hover .read-more { color: var(--accent-hover); }


/* ─── BLOG POST CONTENT ─── */

.blog-post-content h2 { font-size: 1.3rem; margin: 28px 0 12px; }
.blog-post-content h3 { font-size: 1.1rem; margin: 24px 0 10px; }
.blog-post-content p { margin-bottom: 16px; }
.blog-post-content ul, .blog-post-content ol { margin: 0 0 16px 20px; }
.blog-post-content li { margin-bottom: 6px; font-size: 0.92rem; color: var(--text-muted); }
.blog-post-content a { color: var(--accent); text-decoration: underline; }
.blog-post-content a:hover { color: var(--accent-hover); }
.blog-post-content blockquote { border-left: 2px solid var(--accent); padding-left: 20px; margin: 20px 0; color: var(--text-muted); font-style: italic; }


/* ─── TEAM ─── */

.team-grid { display: grid; gap: 24px; }

.team-card { text-align: center; padding: 32px 24px; }

.team-avatar {
  width: 88px;
  height: 88px;
  background: var(--surface-raised);
  color: var(--accent);
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-card h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 2px;
}

.team-card span {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 500;
}

.team-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.6;
}


/* ─── THANK YOU ─── */

.thankyou-box {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
  padding: 60px 24px;
}

.thankyou-box .icon-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thankyou-box h1 { font-size: 1.8rem; margin-bottom: 14px; }
.thankyou-box p { font-size: 1rem; color: var(--text-muted); margin-bottom: 28px; }


/* ─── POLICY ─── */

.policy-content {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--border);
}

.policy-content h2 {
  font-size: 1.2rem;
  margin: 28px 0 12px;
}

.policy-content h2:first-child { margin-top: 0; }
.policy-content p { color: var(--text-muted); margin-bottom: 14px; line-height: 1.7; font-size: 0.92rem; }
.policy-content ul { margin-left: 20px; margin-bottom: 14px; color: var(--text-muted); }
.policy-content li { margin-bottom: 6px; font-size: 0.92rem; }


/* ─── ANIMATIONS ─── */

.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
}


/* ─── RESPONSIVE ─── */

@media (min-width: 640px) {
  .hero { padding: 160px 0 100px; }
  .hero-compact { padding: 80px 0 28px; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
  .hero-image { display: block; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .section { padding: 100px 0; }
  .section-snug { padding-top: 100px; }
  .detail-section { padding: 64px 0; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .detail-grid { grid-template-columns: 1.2fr 1fr; }
  .detail-grid.reversed { direction: ltr; }
  .detail-grid.reversed > :first-child { order: 2; }
  .detail-grid.reversed > :last-child { order: 1; }
  .blog-list { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1.2fr 2fr; }
}

@media (min-width: 860px) {
  .nav { display: flex; }
  .header-cta { display: inline-flex; }
  .mobile-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

@media (min-width: 1024px) {
  .hero { padding: 180px 0 120px; }
  .hero-compact { padding: 100px 0 60px; }
  .detail-section { padding: 80px 0; }
  .detail-grid { gap: 64px; }
}


/* ══════════════════════════════════════════════════════════════
   TRYB CIEMNY (przełącznik w nagłówku)
   ══════════════════════════════════════════════════════════════
   Większość kolorów na stronie korzysta ze zmiennych CSS (--ink,
   --text, --surface itd.), więc wystarczy je tu nadpisać dla
   html.dark-mode. Wyjątkiem są elementy, które celowo łączą
   "ciemne tło + biały tekst" niezależnie od reszty strony
   (przyciski .btn-primary/.btn-secondary, .header-cta:hover,
   .cta-section) — one dostają osobne, stałe kolory poniżej, żeby
   się nie "zlały" gdy --ink zrobi się jasne. */

html.dark-mode {
  --ink: #EDEBE4;
  --ink-soft: #cfcdc4;
  --text: #d5d3cb;
  --text-muted: #9a988f;
  --surface: #15141b;
  --surface-raised: #1e1d25;
  --card-bg: #1c1b23;
  --border: #33323b;
  --border-light: #2a2932;
  --accent-light: #2c2319;
  --warm-light: #2d1f18;
  --danger: #d98d82;
}

html.dark-mode body { background: var(--surface); }

/* Pasek nagłówka ma stały (niezależny od zmiennych) kolor tła —
   trzeba go nadpisać osobno */
html.dark-mode .header { background: rgba(19,18,24,0.92); }

/* Elementy "ciemny blok + biały tekst" — dostają stałe kolory,
   identyczne jak oryginalne --ink/--white w trybie jasnym, żeby
   wyglądały tak samo niezależnie od motywu */
html.dark-mode .btn-primary,
html.dark-mode .btn-secondary {
  background: #1a1a28; border-color: #1a1a28; color: #ffffff;
}
html.dark-mode .btn-primary:hover,
html.dark-mode .btn-secondary:hover {
  background: #3a3a4a; border-color: #3a3a4a; color: #ffffff;
}
html.dark-mode .header-cta:hover { background: #1a1a28; color: #ffffff; }
html.dark-mode .cta-section { background: #1a1a28; }
html.dark-mode .cta-section .btn-primary {
  background: #ffffff; border-color: #ffffff; color: #1a1a28;
}

/* Mapa z tras dojazdu / iframe: przyciemnij, żeby nie świeciła na biało */
html.dark-mode iframe { filter: invert(0.92) hue-rotate(180deg) contrast(0.9); }


/* ══════════════════════════════════════════════════════════════
   WIDŻET DOSTĘPNOŚCI (przełącznik motywu + panel ustawień)
   ══════════════════════════════════════════════════════════════ */

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.a11y-widget { display: flex; align-items: center; gap: 8px; }

.a11y-icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; flex-shrink: 0;
  background: none; border: 1px solid var(--border); border-radius: 100px;
  color: var(--text-muted); cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.a11y-icon-btn svg { width: 17px; height: 17px; display: block; fill: none; stroke: currentColor; }
.a11y-icon-btn:hover { border-color: var(--ink); color: var(--ink); }
.a11y-icon-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.a11y-panel-wrap { position: relative; }

.a11y-panel {
  position: absolute; top: calc(100% + 10px); right: 0; width: 272px;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: 0 16px 32px rgba(26,26,40,0.14); padding: 18px;
  opacity: 0; pointer-events: none; transform: translateY(-6px);
  transition: opacity 0.15s var(--ease), transform 0.15s var(--ease);
  z-index: 1001;
}
.a11y-panel-wrap.open .a11y-panel { opacity: 1; pointer-events: auto; transform: translateY(0); }

.a11y-panel-close {
  position: absolute; top: 10px; right: 10px; width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer; color: var(--text-muted);
  border-radius: 100px; padding: 0; transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.a11y-panel-close svg { width: 15px; height: 15px; display: block; fill: none; stroke: currentColor; }
.a11y-panel-close:hover { background: var(--surface-raised); color: var(--ink); }
.a11y-panel-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.a11y-panel-title {
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 500;
  color: var(--ink); margin-bottom: 2px; padding-right: 22px;
}
.a11y-panel-sub { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 12px; }

.a11y-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-top: 1px solid var(--border-light);
  font-size: 0.85rem; color: var(--ink);
}
.a11y-row:first-of-type { border-top: none; }

.a11y-fontsize { display: flex; gap: 4px; }
.a11y-fontsize button {
  width: 27px; height: 27px; border-radius: 6px; border: 1px solid var(--border);
  background: none; cursor: pointer; font-size: 0.72rem; font-weight: 500; color: var(--ink);
  display: flex; align-items: center; justify-content: center; padding: 0; font-family: var(--font-body);
}
.a11y-fontsize button:hover { background: var(--surface-raised); border-color: var(--ink); }

.a11y-toggle-pill {
  width: 36px; height: 21px; border-radius: 100px; background: var(--border); border: none;
  cursor: pointer; position: relative; flex-shrink: 0; transition: background 0.2s var(--ease); padding: 0;
}
.a11y-toggle-pill::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%;
  background: #ffffff; transition: transform 0.2s var(--ease); box-shadow: 0 1px 3px rgba(26,26,40,0.25);
}
.a11y-toggle-pill.on { background: var(--accent); }
.a11y-toggle-pill.on::after { transform: translateX(15px); }

.a11y-panel-reset {
  width: 100%; margin-top: 12px; padding: 9px; border-radius: 100px; border: 1px solid var(--border);
  background: none; cursor: pointer; font-size: 0.8rem; font-weight: 500; color: var(--text-muted);
  font-family: var(--font-body); transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.a11y-panel-reset:hover { border-color: var(--ink); color: var(--ink); }

/* Efekty włączane z panelu — działają globalnie na całej stronie */
html.a11y-contrast { filter: contrast(1.18) saturate(1.05); }
html.a11y-underline a { text-decoration: underline !important; }
html.a11y-reduce-motion *,
html.a11y-reduce-motion .fade-in {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  opacity: 1 !important;
  transform: none !important;
}

/* Na wąskich ekranach panel nie może wystawać poza krawędź viewportu */
@media (max-width: 380px) {
  .a11y-panel { width: calc(100vw - 32px); right: -12px; }
}

/* ==========================================================================
   BANER COOKIES + CONSENT MODE V2
   HTML w includes/footer.php, logika JS tamże (na końcu pliku).
========================================================================== */
#ai-cookie-banner{position:fixed;left:0;right:0;bottom:0;z-index:999999;
  font-family:var(--font-body);
  transform:translateY(120%);opacity:0;transition:transform .45s cubic-bezier(.16,1,.3,1),opacity .45s ease;pointer-events:none}
#ai-cookie-banner.ai-visible{transform:translateY(0);opacity:1;pointer-events:auto}
#ai-cookie-banner.ai-hiding{transform:translateY(120%);opacity:0}
#ai-cookie-banner[hidden]{display:none !important}
#ai-cookie-banner .ai-cookie-inner{max-width:1160px;margin:0 auto;background:var(--card-bg);
  border:1px solid var(--border);border-bottom:none;border-radius:var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow:0 -8px 28px rgba(26,26,40,.14);padding:20px 28px;display:flex;flex-direction:column}
#ai-cookie-banner .ai-cookie-text{color:var(--text-muted);font-size:13.5px;line-height:1.55;margin:0;flex:1 1 auto;min-width:0}
#ai-cookie-banner .ai-cookie-link{color:var(--accent);text-decoration:underline;
  text-decoration-color:rgba(150,115,74,.35);text-underline-offset:2px;transition:color .15s}
#ai-cookie-banner .ai-cookie-link:hover{color:var(--accent-hover)}
#ai-cookie-banner .ai-cookie-actions{display:flex;align-items:center;gap:12px;flex:0 0 auto;margin-left:auto}
.ai-cookie-main{display:flex;align-items:center;justify-content:space-between;gap:24px;width:100%}
#ai-cookie-banner .ai-btn-text{background:none;border:none;color:var(--text-muted);text-decoration:underline;
  text-decoration-color:rgba(101,101,122,.35);text-underline-offset:2px;padding:12px 4px;font-size:13.5px;
  font-weight:600;font-family:inherit;cursor:pointer}
#ai-cookie-banner .ai-btn-text:hover{color:var(--ink)}
.ai-cookie-prefs{width:100%;margin-top:18px;padding-top:18px;border-top:1px solid var(--border);display:flex;flex-direction:column;gap:4px}
.ai-pref-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px 0}
.ai-pref-row + .ai-pref-row{border-top:1px solid var(--border-light)}
.ai-pref-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.ai-pref-title{font-size:13.5px;font-weight:700;color:var(--ink)}
.ai-pref-desc{font-size:12.5px;color:var(--text-muted);line-height:1.45}
.ai-pref-switch{flex:0 0 auto;width:40px;height:24px;border-radius:100px;border:none;background:var(--border);
  position:relative;cursor:pointer;padding:0;transition:background .15s}
.ai-pref-switch .ai-pref-knob{position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;
  background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.25);transition:transform .15s}
.ai-pref-switch[aria-checked="true"]{background:var(--accent)}
.ai-pref-switch[aria-checked="true"] .ai-pref-knob{transform:translateX(16px)}
.ai-pref-switch-locked{background:var(--accent);opacity:.55;cursor:default}
.ai-pref-switch-locked .ai-pref-knob{transform:translateX(16px)}
.ai-pref-actions{justify-content:flex-end;margin-top:10px}
#ai-cookie-banner .ai-btn:focus-visible,#ai-cookie-banner .ai-btn-text:focus-visible,.ai-pref-switch:focus-visible{outline:2px solid var(--danger);outline-offset:2px}
#ai-cookie-banner .ai-btn{font-family:inherit;font-size:13.5px;font-weight:600;letter-spacing:.01em;
  border-radius:var(--radius);padding:12px 20px;cursor:pointer;white-space:nowrap;transition:transform .15s,box-shadow .2s,background .2s,border-color .2s,color .2s;border:0}
#ai-cookie-banner .ai-btn:active{transform:scale(.97)}
#ai-cookie-banner .ai-btn-ghost{background:var(--surface-raised);color:var(--text-muted)}
#ai-cookie-banner .ai-btn-ghost:hover{color:var(--ink);background:var(--border-light)}
#ai-cookie-banner .ai-btn-primary{color:#fff;background:var(--accent)}
#ai-cookie-banner .ai-btn-primary:hover{background:var(--accent-hover);transform:translateY(-1px);box-shadow:var(--shadow)}
@media(max-width:860px){#ai-cookie-banner .ai-cookie-inner{border-radius:0;padding:18px 20px}#ai-cookie-banner .ai-cookie-main{flex-wrap:wrap}}
@media(max-width:560px){
  #ai-cookie-banner .ai-cookie-inner{padding:18px 16px 20px}
  #ai-cookie-banner .ai-cookie-main{flex-direction:column;align-items:stretch;gap:16px}
  #ai-cookie-banner .ai-cookie-actions{width:100%;flex-direction:column-reverse;gap:10px}
  #ai-cookie-banner .ai-btn{width:100%;text-align:center;padding:13px 20px}
  .ai-pref-row{flex-wrap:wrap;gap:8px}
}
@media(prefers-reduced-motion:reduce){#ai-cookie-banner{transition:none}}
